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

Uploaded Source

Built Distribution

pydnserver-1.0.1-py2.py3-none-any.whl (14.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pydnserver-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1804d19f4640ea56ca6700e79282c010c123dc46cc7114da7534234134be8610
MD5 1bf5a1d4cf7edd21d2c60fbb61568c46
BLAKE2b-256 0dafad6d4747e9c5ce6e79a798a580bcd6d1a7278bb43c033112da9cdad112b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydnserver-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b1e9b993cc759f149876f9a79bb64fe49dad4448a7bd1b69e52f052fb0f0cc12
MD5 113a0abf37c642e9b2435073f2054905
BLAKE2b-256 12110765fa33b85b7cf25677933e0140455395cc31c68889dcb1f181b013b30d

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