Below is some simple configuration for running DNS Master/Slave zone.
We assume the following IP configuration:
- DNS Master : 192.168.1.1
- DNS Slave : 192.168.1.2
- DNS Zone: domain.com
Master Server Configuration
Master server’s named.conf must contain something like this:
view "external" { allow-transfer {none;}; zone "." IN { type hint; file "named.ca"; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; zone "domain.com" IN { type master; file "domain.com.zone"; allow-transfer {192.168.1.2;}; notify yes; also-notify {192.168.1.2;}; }; };
Slave Server Configuration
Slave server’s named.conf must contain something like that:
view "external" { allow-transfer{none;}; recursion no; zone "." IN { type hint; file "named.ca"; }; zone "domain.com" { type slave; file "/var/named/slaves/domain.com"; masters {192.168.1.1;}; }; include "/etc/named.rfc1912.zones"; include "/etc/named.root.key"; };
FAQ
- When making changes to the master zone, make sure to ++increment the zone SERIAL in order updates to get propagated