1from pydnserver import DNSServer
2
3ip = u'192.168.0.10' # Set this to the IP address of your network interface.
4
5dns = DNSServer(interface=ip, port=53)
6dns.start()
7
8try:
9 while True:
10 pass
11
12except KeyboardInterrupt:
13 dns.stop()
14