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.2.zip (17.7 kB view details)

Uploaded Source

Built Distribution

pydnserver-1.0.2-py2.py3-none-any.whl (14.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pydnserver-1.0.2.zip.

File metadata

  • Download URL: pydnserver-1.0.2.zip
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydnserver-1.0.2.zip
Algorithm Hash digest
SHA256 846ba0a7a21723493474a8ec4e03a3b0e7d6e773355a95b60359c46955a836ab
MD5 dc03f8cc39a138ef1a6a9c8cf6f913c5
BLAKE2b-256 a8f70df73824665d67f53285606201f76d165378e018b66670e9189f0c9e76b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydnserver-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f85c95543b2e2b3bb7862c22fa118ff50c42f2506dbb791ceb0374ea059aaacd
MD5 27fbf38888fc3c32545d41f7df557e82
BLAKE2b-256 b9d243b1e598daeb003700c59bb9a0a86ef770be4c62598c989a6942c6052a1b

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