/docker-dns

Primary LanguageDockerfile

docker DNS

Setup

make

Lookup

Use dig to check dns server is work.

Install

In arch linux, you can execute following command:

pacman -S extra/bind

Check

dig @localhost zonda.tw

Log

if you want to use log, remember execute following command:

mkdir -p /var/log/bind
chown bind /var/log/bind

Trouble shooting

Restart bind failed!

service named restart
Stopping domain name service...: namedrndc: connect failed: 127.0.0.1#953: connection refused
.
Starting domain name service...: named failed!

you can use named command to debug it.

/usr/sbin/named -g

DDNS

DDNS setting

Reference

Debian Bind9 wiki
How to Install and Configure DNS Server in Linux
Running a DNS Server in Docker
How to delegate a sub-domain to other DNS servers
Enabling logging in BIND
BIND Logging - some basic recommendations
DNS Server 開啟 Log 記錄檔 - BIND