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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pydnserver-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d2c460d08a478d381360afa6be71dd710eab5781f2993fc4cd6e840903415e34
MD5 d6543f3c0d4045fc3183ec3f55ae9d59
BLAKE2b-256 7cddb5263a74ab61148fcd0b08df100d9fabb45d68e879bb74b6fcfc12f97fb3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydnserver-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2599bfc2b0830805762053f36eea0dc95dacac750a4ec7b81c78af6b68ef5e5c
MD5 b8d372bbbfae03d74ec022eb43063146
BLAKE2b-256 5a5550a8893f0d5add0a6f6c8951268174807cca3426a2a9da030cf4daf8a4bf

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