nano /etc/bind/named.conf.local
zone "example.com" { type master; file "/etc/bind/zones/db.example.com"; # zone file path allow-transfer { 89.117.172.182; 51.75.55.91; }; also-notify { 89.117.172.182; 51.75.55.91; }; };
mkdir -p /etc/bind/zones
nano /etc/bind/zones/db.example.com
; ; BIND data file for local loopback interface ; $TTL 3600 @ IN SOA ns1.example.com. root.example.com. ( 2023021901 ; Serial 3600 ; Refresh 7200 ; Retry 2419200 ; Expire 7200 ; Negative Cache TTL ); ; NS records @ IN NS ns1.example.com. @ IN NS ns2.example.com. @ IN NS ns3.example.com. ; SPF records @ IN TXT "v=spf1 -all" ; Host records @ IN A 51.75.55.91 www IN CNAME @ ; NS addresses ns1 IN A 46.41.139.131 ns2 IN A 89.117.172.182 ns3 IN A 51.75.55.91
zone "example.com" { type slave; file "db.example.com"; masters { 46.41.139.131; }; };