Metadata-Version: 2.1
Name: pydnserver
Version: 2.4.2
Summary: Provides a very simple DNS server.
Home-page: https://bitbucket.org/davisowb/pydnserver.git
Author: Oli Davis & Hywel Thomas
Author-email: oli.davis@me.com, hywel.thomas@mac.com
License: MIT
Download-URL: https://bitbucket.org/davisowb/pydnserver.git/get/2.4.2.tar
Keywords: dns
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Utilities
License-File: LICENSE.txt


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.


