Provides a very simple DNS server.
Provides a very simple DNS server. It provides the following functionality: * Resolves hostnames to IP addresses. (A record lookups) * Resolves hostnames to hostnames. (CNAME lookups)
To start up a DNS server:
from pydnserver import DNSServer ip = u'192.168.0.10 # Set this to the IP address of your network interface. dns = DNSServer(interface=ip, port=53) dns.start() try: while True: pass except KeyboardInterrupt: dns.stop()
This starts a bare bones DNS server that will forward all requests to the google DNS servers (188.8.131.52, 184.108.40.206).
Configuration can currently be managed using the configurationutil.Configuration interface.
The configuration is dynamic. If it is changed, it will be reflected in the next request.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for pydnserver-2.4.2-py2.py3-none-any.whl