pocket-dns

Multi-backend (zookeeper and sqlite) DNS Server using persistent-library

Latest on Hackage:0.1.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Junji Hashimoto

PocketDNS: Multi-backend (zookeeper and sqlite) DNS Server using persistent-library

Hackage version Build Status

PocketDNS is multi-backend (zookeeper and sqlite) DNS Server using persistent-library.

Getting started

Install this from Hackage.

cabal update && cabal install pocket-dns

Usage

Set conf.yml which is backend settings. When backend is zookeeper, conf.yml's format is below.

backend: zookeeper
coord: localhost:2181/
timeout: 300000
num-stripes: 1
idletime: 300000
max-resource: 30

When backend is sqlite, conf.yml's format is below.

backend: sqlite
database: pocket-dns.sqlite3
poolsize: 10

Then launch dns-server and set domain and ip-address.

pocket-dns daemon &
pocket-dns set <domain>. <ip-address>

When domain is not found, pocket-dns checks '/etc/resolv.conf'.

Commands

Set

Set ip-address of domain

pocket-dns set <domain-name>. <ip-address>

get

Show ip-address of domain

pocket-dns get <domain-name>.

list

Show all domain and ip-address

pocket-dns list

delete

Delete domain

pocket-dns delete <domain-name>.

daemon

Launch dns-server

pocket-dns daemon

Changes

0.1.1

  • Add cabal-dependency

0.1.0

  • First Release
comments powered byDisqus