Sign inSign up

coder4/rubydns

By coder4

Updated almost 9 years ago

Docker DNS support custom entry, backend by rubydns

Image
0

280

coder4/rubydns repository overview

rubydns is a Docker DNS Image that support custom entry.

Run with defaultdns

docker run -d -p 53 -p 53/udp rubydns will use 8.8.8.8 as dns provider

Run with custom define host docker
docker run \
    -p 53:53 \
    -p 53:53/udp \
    --volume $PWD/conf:/etc/rubydns \
    --env HOSTS=/etc/rubydns/hosts \
    --detach \
    coder4/rubydns

A file named 'hosts' should be placed under host's conf dictionary, with contents

host1 1.1.1.1
host2 2.2.2.2
Run with custom define host docker
docker run \
    -p 53:53 \
    -p 53:53/udp \
    --volume $PWD/conf:/etc/rubydns \
    --env HOSTS=/etc/rubydns/hosts \
    --env REST_URL=http://192.168.99.100/container/list \
    --env IP_PREFIX=10. \
    --detach \
    coder4/rubydns

See docker swarm dict as rest url

Tag summary

Content type

Image

Digest

Size

80.1 MB

Last updated

almost 9 years ago

docker pull coder4/rubydns:1.2