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.
Raw data
{
"_id": null,
"home_page": "https://bitbucket.org/davisowb/pydnserver.git",
"name": "pydnserver",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "dns",
"author": "Oli Davis & Hywel Thomas",
"author_email": "oli.davis@me.com, hywel.thomas@mac.com",
"download_url": "https://files.pythonhosted.org/packages/d8/63/37bfcb0154050f87c916e81bc06b4900f84ee25074a2c0f9fba92f512134/pydnserver-2.4.2.tar.gz",
"platform": null,
"description": "\nPyDNServer\n========================\n\nProvides a very simple DNS server. It provides the following functionality:\n* Resolves hostnames to IP addresses. (A record lookups)\n* Resolves hostnames to hostnames. (CNAME lookups)\n\n\nTo start up a DNS server::\n\n from pydnserver import DNSServer\n\n ip = u'192.168.0.10 # Set this to the IP address of your network interface.\n\n dns = DNSServer(interface=ip, port=53)\n dns.start()\n\n try:\n while True:\n pass\n\n except KeyboardInterrupt:\n dns.stop()\n\nThis starts a bare bones DNS server that will forward all requests to the google DNS servers (8.8.8.8, 8.8.4.4).\n\nConfiguration can currently be managed using the configurationutil.Configuration interface.\n\nThe configuration is dynamic. If it is changed, it will be reflected in the next request.\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Provides a very simple DNS server.",
"version": "2.4.2",
"split_keywords": [
"dns"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "74b3f6e831f5ce31a9ea56a63bbecdbe20ddabdf680cde666493ed54d0f224bc",
"md5": "6b1d9dc53b558642c720c0ce0149416c",
"sha256": "c8359448c38b5ed181d23788c81ad25236753ffd0d9280a98d0ca0d5bb25b5cf"
},
"downloads": -1,
"filename": "pydnserver-2.4.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "6b1d9dc53b558642c720c0ce0149416c",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 29069,
"upload_time": "2023-01-27T20:39:48",
"upload_time_iso_8601": "2023-01-27T20:39:48.487967Z",
"url": "https://files.pythonhosted.org/packages/74/b3/f6e831f5ce31a9ea56a63bbecdbe20ddabdf680cde666493ed54d0f224bc/pydnserver-2.4.2-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d86337bfcb0154050f87c916e81bc06b4900f84ee25074a2c0f9fba92f512134",
"md5": "2a3da4ac98c0cfcf2026c2bfdef031cf",
"sha256": "fd577319fc056980412288041da9a4f31a382a2f68f767ac04c3e378a0479b1c"
},
"downloads": -1,
"filename": "pydnserver-2.4.2.tar.gz",
"has_sig": false,
"md5_digest": "2a3da4ac98c0cfcf2026c2bfdef031cf",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 19089,
"upload_time": "2023-01-27T20:39:50",
"upload_time_iso_8601": "2023-01-27T20:39:50.608542Z",
"url": "https://files.pythonhosted.org/packages/d8/63/37bfcb0154050f87c916e81bc06b4900f84ee25074a2c0f9fba92f512134/pydnserver-2.4.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-27 20:39:50",
"github": false,
"gitlab": false,
"bitbucket": true,
"bitbucket_user": "davisowb",
"bitbucket_project": "pydnserver.git",
"lcname": "pydnserver"
}