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)
| File | Size | Uploaded | |
|---|---|---|---|
| pydnserver-2.4.2.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|