Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 334 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 334 Bytes

dnsmasq

Python dnsmasq library

how to use

MAC-address generate.

from dnsmasq import mac
mac.gen()
from dnsmasq import dnsmasq

dns = dnsmasq.Dnsmasq("/etc/dnsmasq.d/cloud.conf")

dns.exists_name('52:54:00::6b:dc:1f')
dns.add('52:54:00::6b:dc:1f', '192.168.1.11')
dns.delete('52:54:00::6b:dc:1f')