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'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 (8.8.8.8, 8.8.4.4).

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.2.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

pydnserver-2.2.0-py2.py3-none-any.whl (28.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pydnserver-2.2.0.tar.gz.

File metadata

  • Download URL: pydnserver-2.2.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydnserver-2.2.0.tar.gz
Algorithm Hash digest
SHA256 b43de60c7d42221fbb37b0c7b98de35d86922f036a9e4c42f0895ad6c131bceb
MD5 c5005a631d9a53dbd4c4c3ecd1ae9d89
BLAKE2b-256 02ab76620ccdd01cd7d31f7645420ccd936bc6c8697133edc4a45e079d88e783

See more details on using hashes here.

File details

Details for the file pydnserver-2.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pydnserver-2.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 91c8161e032b356594957a82e8563e19595135fdb8be9a05932bb93b4c7ced62
MD5 3ce023582fe57ca6b901acd5ac342e4d
BLAKE2b-256 28145ca4f9c2c359169ad6de6b5152397ba106757c7613838ff6a86f3bc1b8d5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page