Secondary DNS Server

Prerequisites

sudo apt install bind9

Install template files

tar -xvzf /srv/scripts/xfer/202005051009-dns-secondary.tar.gz
cd tmp/dsm-xxxxxxxx/etc/bind
sudo cp ../default/bind /etc/default/
sudo cp * /etc/bind/

Customize template files

cd /etc/bind/
sudo nano named.conf.local
    <edit all "masters" options to provide the
     primary DNS server's IP address>
sudo nano named.conf.options
    <edit the "listen-on" option to reflect the
     host's IP address>

Other environment configuration

sudo mkdir /var/cache/bind/slaves/
sudo chown bind: /var/cache/bind/slaves/

Startup and test

sudo systemctl restart bind9
grep named /var/log/syslog
ls -al /var/cache/bind/slaves

Related or dependent settings

  1. DHCP server settings
  2. Domain NS records
  3. Other?

Leave a Reply

Your email address will not be published. Required fields are marked *