root@ns1:/etc/bind# cd /etc/bind root@ns1:/etc/bind# emacs named.conf.local root@ns1:/etc/bind# cat named.conf.local // // Do any local configuration here // zone "clarsen.utahsg.org" { // This server holds the master (primary) information type master; // This is the file where the domain information is stored file "/etc/bind/db.clarsen.utahsg.org"; // All slave (secondary) servers must be listed here to // allow them to transfer a copy of the zone information allow-transfer { 144.38.211.163; localhost; }; // Tell (notify) all slave (secondary) servers when the // domain information changes notify yes; // Allow any IP address to query (ask) about this domain. allow-query { any; }; }; zone "utahsg.net" { type master; file "/etc/bind/db.utahsg.net"; allow-transfer { 144.38.211.163; localhost; }; notify yes; allow-query { any; }; }; zone "160-191.211.38.144.in-addr.arpa" { type master; file "/etc/bind/db.160-191.211.38.144.in-addr.arpa"; allow-transfer { 144.38.211.163; localhost; }; notify yes; allow-query { any; }; }; // Consider adding the 1918 zones here, if they are not used in your // organization //include "/etc/bind/zones.rfc1918"; root@ns1:/etc/bind# cp db.utahsg.net db.160-191.211.38.144.in-addr.arpa root@ns1:/etc/bind# emacs db.160-191.211.38.144.in-addr.arpa root@ns1:/etc/bind# cat db.160-191.211.38.144.in-addr.arpa ; FYI ; ; 3600 seconds = 1 hour ; 86400 seconds = 1 day ; 604800 seconds = 1 week ;31449600 seconds = 52 weeks ; ; This TTL (time to live) is for all RR (resource records) that do not have ; TTL otherwise specified. The value is in seconds. If the TTL ; is too large, then it takes a long time to get changes into ; caching servers. If it is too small, then the nameserver gets overworked. ; $TTL 3600 ; RR are good for 1 hour ; There must be an SOA for every zone ; ; SOA (Start of Authority) record. ; Serial - number must increase every time you change this file ; Refresh - How often the secondary name servers should check ; for updated information ; Retry - How often the secondary name servers should retry ; a refresh if the refresh is unsuccessful ; Expire - How long the secondary name servers should keep this ; information before it is bad. ; Minimum/TTL - ; How long negative hits should be stored. This is for ; other servers that ask us about a non-existent RR. ; They should cache the negative response for this long. @ IN SOA ns1.utahsg.net. root.ns1.utahsg.net. ( 2009091001 ; Serial 3600 ; Refresh every 1 hour 300 ; Retry every 5 minutes 2419200 ; Expire 4 weeks to expire 60 ) ; Negative Cache TTL 1 minute ; ; NS (Name Server) records ; @ IN NS ns1.utahsg.net. @ IN NS ns2.utahsg.net. ; ; A (Address) records ; 162 IN PTR ns1.utahsg.net. 163 IN PTR ns2.utahsg.net. root@ns1:/etc/bind# /etc/init.d/bind9 restart * Stopping domain name service... bind [ OK ] * Starting domain name service... bind [ OK ] root@ns1:/etc/bind# less /var/log/daemon.log root@ns1:/etc/bind# dig @144.38.192.2 -x 144.38.211.163 ; <<>> DiG 9.4.2-P2 <<>> @144.38.192.2 -x 144.38.211.163 ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41703 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2 ;; QUESTION SECTION: ;163.211.38.144.in-addr.arpa. IN PTR ;; ANSWER SECTION: 163.211.38.144.in-addr.arpa. 3600 IN CNAME 163.160-191.211.38.144.in-addr.arpa. 163.160-191.211.38.144.in-addr.arpa. 3527 IN PTR ns2.utahsg.net. ;; AUTHORITY SECTION: 160-191.211.38.144.in-addr.arpa. 3527 IN NS ns1.utahsg.net. 160-191.211.38.144.in-addr.arpa. 3527 IN NS ns2.utahsg.net. ;; ADDITIONAL SECTION: ns1.utahsg.net. 172707 IN A 144.38.211.162 ns2.utahsg.net. 172707 IN A 144.38.211.163 ;; Query time: 11 msec ;; SERVER: 144.38.192.2#53(144.38.192.2) ;; WHEN: Thu Sep 17 03:04:28 2009 ;; MSG SIZE rcvd: 163 root@ns1:/etc/bind# dig @localhost 163.160-191.211.38.144.in-addr.arpa PTR ; <<>> DiG 9.4.2-P2 <<>> @localhost 163.160-191.211.38.144.in-addr.arpa PTR ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49712 ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;163.160-191.211.38.144.in-addr.arpa. IN PTR ;; ANSWER SECTION: 163.160-191.211.38.144.in-addr.arpa. 3600 IN PTR ns2.utahsg.net. ;; AUTHORITY SECTION: 160-191.211.38.144.in-addr.arpa. 3600 IN NS ns2.utahsg.net. 160-191.211.38.144.in-addr.arpa. 3600 IN NS ns1.utahsg.net. ;; ADDITIONAL SECTION: ns1.utahsg.net. 3600 IN A 144.38.211.162 ns2.utahsg.net. 3600 IN A 144.38.211.163 ;; Query time: 9 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Thu Sep 17 03:05:35 2009 ;; MSG SIZE rcvd: 145