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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for pydnserver-1.1.1.tar.gz
Algorithm Hash digest
SHA256 1075800f0f10f2aa4c1fb85f3f3d36687ecc98ebf721789f7b1d290e33f40f58
MD5 3fab7ce6f28444036dd067b0cdfba146
BLAKE2b-256 5e8c3e676494b8064bacd5c4a821fa5d6201e239062b78dffde45172c8996b75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydnserver-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 bf7207d625868c1b109b019ed00c79ba00693044c861ef218a1d6fe22c1f4caa
MD5 8a2f0d79268df45d647059563e52d043
BLAKE2b-256 5f9253ee54a11de01ef2c6b86a5ddd9b8907b6a944aafed7226132fc997f6277

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