docker_notes:docker-dns

This is an old revision of the document!


Back  
 Next

Docker - DNS Server

What Is DNS and How Does It Work – A Comprehensive Guide I propose to create a Docker Bind9 Image using base Docker Alpine Linux images, with S6 init system.

The main router must be set to forward packets! The ability to forward packets must be set / allowed, edit or add the following parameters in sudo vim /etc/sysctl.conf:

  • net.ipv4.ip_forward = 1
  • net.ipv4.conf.all.proxy_arp = 1
  • sudo sysctl net.ipv6.conf.all.forwarding=1 similar for ipv6

After applying these changes reboot or apply setting using sudo sysctl -p /etc/sysctl.conf

  • /usr/sbin/named -f -4 to start the isc-bind9 application called named,
    • -f to run in foreground
    • -4 to run ipv4 only
  • rndc stop to stop named - need to implement this in S6
  • rndc reload to reload the named configuration files
  • named-checkconf /etc/bind/named.conf
  • named-checkzone kptree.net /etc/bind/db.kptree.net
  • named-checkzone 1.168.192.in-addr.arpa /etc/bind/db.1.168.192
  • cat /log/named/bind.log to list bind log file
    • rndc dumpdb -zones
    • cat /var/bind/named_dump.db to see the database dump
    • named-checkconf -l does this option still exist?
    • named-checkconf -p for a flatened uncomment listing of the configuration files
  • /app/www/public/data/attic/docker_notes/docker-dns.1701610592.txt.gz
  • Last modified: 2023-12-03 Sun wk48 21:36
  • by baumkp