Skip to main content

Provides a very simple DNS server.

Project description

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'  # Set this to the IP address of your network interface.

dns = DNSServer(interface=ip, port=53)

    while True:

except KeyboardInterrupt:

This starts a bare bones DNS server that will forward all requests to the google DNS servers (,

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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydnserver-2.4.2.tar.gz (19.1 kB view hashes)

Uploaded source

Built Distribution

pydnserver-2.4.2-py2.py3-none-any.whl (29.1 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page