cd /etc/bind nano /etc/bind/named.conf.local zone "domain.uk" { type master; file "/etc/bind/db.domain.uk"; # Change to your Domain allow-transfer { 10.10.0.1; }; # Change IP to NS2 allow-query { any; }; allow-update { key "auth"; }; # Allow update is only required for acme-challenge zones, Dynamic Updates }; # Add new Zone nano db.domain.uk # Change to your domain ; zone file for domain.uk $TTL 86400 $ORIGIN domain.uk. ; appended to unqualified records @ IN SOA ns1.domain.uk. noc.domain.uk. ( 2025020701 ; serial YYYYMMDDnn 3600 ; refresh ( 1 hour) 1800 ; retry ( 30 mins) 1296000 ; expire (15 days) 86400 ) ; minium ( 1 days) ; name servers - NS records @ IN NS ns1.domain.uk. @ IN NS ns2.domain.uk. ; Name records for this domain ns1 IN A 1.2.3.4 # Change IP ns2 IN A 5.6.7.8 # Change IP ; MX record for mail server @ IN MX 10 mx1.domain.uk. # Change to your Mail Hostname @ IN MX 20 mx2.domain.uk. # Change to your Mail Hostname ; A records for mail server mx1 IN A 1.2.3.4 # Change IP to WAN mx2 IN A 4.5.6.7 # Change IP to Second WAN or Second Site ; A records for web server @ IN A 1.2.3.4 # Change IP www IN A 5.6.7.8 # Change IP # Check for errors named-checkconf named-checkzone domain.uk /etc/bind/db.domain.uk # Change to your domain # Restart config without restart whole service rndc reconfig # Configuring NS2 cd /etc/bind nano /etc/bind/named.conf.local zone "domain.uk" { type master; file "/etc/bind/db.domain.uk"; allow-transfer { 10.10.0.1; }; # Change IP to NS1 allow-query { any; }; allow-update { key "auth"; }; # Allow update is only required for acme-challenge zones, Dynamic Updates }; rndc reconfig rndc reload domain.uk # Change to your domain