Skip to main content

PyDNServer

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.

Metadata

Release files for pydnserver 2.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydnserver 2.4.2
File Size Uploaded
pydnserver-2.4.2.tar.gz 19.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydnserver 2.4.2
File Interpreter ABI Platform
pydnserver-2.4.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 48.2 kB

Release files / pydnserver-2.4.2.tar.gz

Download URL pydnserver-2.4.2.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd577319fc056980412288041da9a4f31a382a2f68f767ac04c3e378a0479b1c
BLAKE2b-256 checksum
How to use checksums
d86337bfcb0154050f87c916e81bc06b4900f84ee25074a2c0f9fba92f512134
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / pydnserver-2.4.2-py2.py3-none-any.whl

Download URL pydnserver-2.4.2-py2.py3-none-any.whl
Size 29.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c8359448c38b5ed181d23788c81ad25236753ffd0d9280a98d0ca0d5bb25b5cf
BLAKE2b-256 checksum
How to use checksums
74b3f6e831f5ce31a9ea56a63bbecdbe20ddabdf680cde666493ed54d0f224bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

2.4.2 This release

2 release files

2.4.1

2 release files

2.4.0

2 release files

2.3.3

2 release files

2.3.2

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.8

2 release files

2.2.7

2 release files

2.2.6

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.0

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.0.0

1 release file

1.1.4

2 release files

1.1.3

2 release files

1.1.2

1 release file

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page