nano /etc/bind/named.conf.local
zone "example.com" { type master; file "/etc/bind/zones/db.example.com"; # zone file path allow-transfer { 66.151.48.247; }; also-notify { 66.151.48.247; }; };
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. ; SPF records @ IN TXT "v=spf1 -all" ; Host records @ IN A 69.25.112.233 www IN CNAME @ ns1 IN A 46.41.139.131 ns2 IN A 66.151.48.247
zone "example.com" { type slave; file "db.example.com"; masters { 46.41.139.131; }; };