Create your DNS server on docker

Docker

Instatllation

1
2
# assume docker is installed already
docker pull sameersbn/bind

Run

1
2
3
4
docker run --name bind -d \
--publish 53:53/tcp --publish 53:53/udp --publish 10000:10000/tcp \
--volume ./bind:/data \
sameersbn/bind

Add new domain and A record

  1. Open your browser access https://localhost:10000 (Webmin) > Servers > BIND DNS Server.
  2. Create master zone
  3. Edit Records File
  4. Click right top corner button to Apply configuration

Test

Dig

Reference

https://github.com/sameersbn/docker-bind
https://hub.docker.com/r/sameersbn/bind