Skip to content

vanzhiganov/dnsmasq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')