Skip to main content

micro dns server

Project description

'Stories in Ready' Build Status Coverage Quality

udns is an authoritative, caching DNS server for development and small deployments written in Python using the circuits Application Framework and the dnslib DNS library. udns can be run standalone, via Docker or using the Docker Compose tool. udns is designed to be small, lightweight, fast and flexible. udns fully supports forwarding, caching as well as honoring TTL(s). udns will also read your /etc/hosts file at startup and use this to populate an internal hosts cache so that entries in your local /etc/hosts file are fully resolvable with tools such as host, dig and resolver client libraries.

Installation and Usage

From Source:

$ git clone https://github.com/prologic/udns
$ cd udns
$ python setup.py develop
$ sudo udnsd --debug  # Server
$ udnsc --help        # Client

From Source using Docker and Docker Compose:

$ git clone https://github.com/prologic/udns
$ cd udns
$ docker-compose up -d                  # Server
$ docker-compose run --rm udns udnsc    # Client

Using Docker:

$ docker run -d -p 53:53/udp prologic/udns

From PyPi (coming soon):

$ pip install udns
$ udnsd     # Server
$ udnsc     # Client

Running as a Daemon:

$ sudo udnsd -d --logfile=$(pwd)/udnsd.log --pidfile=$(pwd)/udnsd.pid

Managing Zones and Records

udns is a full authoritative, caching DNS server and ships with a client to help manage zones and records. Here are some quick examples:

Create new Zone:

$ udnsc create abc.com.

Create new Zone from a file:

$ udnsc create abc.com. abc.com

or::

$ udnsc create abc.com. - < abc.com

List Zones:

$ udnsc list

Show Zone Records:

$ udnsc show abc.com.

Export a Zone::

$ udnsc export abc.com.

Add Zone Records:

$ udnsc add abc.com. www 127.0.0.1

Delete a Zone Record:

$ udnsc delete abc.com. www

Delete a Zone:

$ udnsc delete abc.com.

Changes

udns 0.0.2 (2016-01-26)

  • Added support for CNAME(s)

  • Added support for @ ($ORIGIN)

  • Various small bugfixes

udns 0.0.1 (2014-08-26)

  • Initial Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

udns-0.0.2.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

udns-0.0.2-py2-none-any.whl (14.8 kB view details)

Uploaded Python 2

File details

Details for the file udns-0.0.2.tar.gz.

File metadata

  • Download URL: udns-0.0.2.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for udns-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a9cda6058041f4c820e5504e7c6f6b6f6ffad2d2c42c40eabd9290e60bf0a2fb
MD5 8056089d8ef00ae2ec2b1c4ecb89f10a
BLAKE2b-256 eb884e4c4a44ff4b9b6bab9b4f6d345acbe86f6da6fb29335a988e61eaa20b8f

See more details on using hashes here.

File details

Details for the file udns-0.0.2-py2-none-any.whl.

File metadata

  • Download URL: udns-0.0.2-py2-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for udns-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 055875fcb65fa84f0310beaf1d004eae0d0655718ca0f14aeb987a04e316456d
MD5 2d1d243e5710e133b14df4fde597f5fa
BLAKE2b-256 b8ded6c1c967e70366947daca689a680566b289fae0e44c0ed9246ee0ce6e622

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page