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

Uploaded Source

Built Distribution

pydnserver-2.3.0-py2.py3-none-any.whl (28.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: pydnserver-2.3.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for pydnserver-2.3.0.tar.gz
Algorithm Hash digest
SHA256 5edcdb3d8c895ad479ebe57a03b007d667731b3bb8397f48b193d7a4c1a5a9ba
MD5 cdd8cf005153b6f5348c261a7a087026
BLAKE2b-256 fc89e1c2fbbac0a33e5bcc19df53b0e27eaa261cbf0f9e468bde54485d224368

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydnserver-2.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for pydnserver-2.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b394870bac436ac54bf807e0f322d135b399c42631e23a65aa0d209af21f9051
MD5 a44c9c5dbc46ca71424260014f658f69
BLAKE2b-256 43b8bf15452227b7fb89046603498cc393fd47f60a0ac65462e665c150091eeb

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