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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydnserver-2.4.2.tar.gz.
File metadata
- Download URL: pydnserver-2.4.2.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd577319fc056980412288041da9a4f31a382a2f68f767ac04c3e378a0479b1c
|
|
| MD5 |
2a3da4ac98c0cfcf2026c2bfdef031cf
|
|
| BLAKE2b-256 |
d86337bfcb0154050f87c916e81bc06b4900f84ee25074a2c0f9fba92f512134
|
File details
Details for the file pydnserver-2.4.2-py2.py3-none-any.whl.
File metadata
- Download URL: pydnserver-2.4.2-py2.py3-none-any.whl
- Upload date:
- Size: 29.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8359448c38b5ed181d23788c81ad25236753ffd0d9280a98d0ca0d5bb25b5cf
|
|
| MD5 |
6b1d9dc53b558642c720c0ce0149416c
|
|
| BLAKE2b-256 |
74b3f6e831f5ce31a9ea56a63bbecdbe20ddabdf680cde666493ed54d0f224bc
|