/etc/tinydns
/etc/dnscache
53/UDP : TinyDNS
53/TCP : DNSCache
First, you need to create a TinyDNS data file on your host. For example,
cat > {YOUR_TINYDNS_DATA_DIR}/data << EOF
.testdomain.com:10.0.0.1:ns.testdomain.com:3600
EOF
And run Container
docker run -dit -p 53:53/udp -p 53:53/tcp -v {YOUR_TINYDNS_DATA_FILE}:/etc/tinydns/root/data adite/tinydns
Then test DNS
$ dig testdomain.com soa @127.0.0.1 +short
ns.testdomain.com. hostmaster.testdomain.com. 1405869680 16384 2048 1048576 2560
$ dig ns.testdomain.com @127.0.0.1 +short
10.0.0.1
Content type
Image
Digest
Size
167.9 MB
Last updated
over 7 years ago
docker pull adite/tinydns