openode-io / dyn_nameserver

Dynamic DNS server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DynNameserver

DynNameserver is a Dynamic Nameserver which is a basic DNS server responding to A Record requests.

Installation

You need to have docker.io installed locally.

Then build the image:

docker build . -t dyn-nameserver

Alternatively you can just run bash build.sh.

Launch it

The following command runs a docker container with the proper image:

bash start.sh

Assumptions

Currently the container assumes a redis server is available in the host. Also, the A records mappings need to be populated in the redis server with the following KEY-VALUE structure:

dyn--nameserver--<HOSTNAME>--<QUERY TYPE>--<ID> -> "{\"value\":\"my value\"}"

This is hard coded currently in lib/nameserver.ex. QUERY TYPE currently supports A, CNAME, TXT.

Therefore you need another service which populates the redis key-values.

About

Dynamic DNS server


Languages

Language:Elixir 93.5%Language:Shell 5.1%Language:Dockerfile 1.4%