primary eqecat.com db.eqecat
; This is a comment. I Love comments. ; ; SOA Record eqecat.com ; Times in seconds. @ IN SOA ns.eqe.com. postmaster.eqe.com. ( 199509010 ; serial number. This is the date: YYYYMMDD ; plus an extra digit, usually zero. ; If you change the file, change the serial ; number. If you change it more than once in a day ; change the last digit. 86400 ; refesh after 24 hours 3600 ; retry after 1 hour 604800 ; expire after 1 week 86400 ) ; minimum TTL of 1 day ; Name servers for eqecat.com ; This should be the exact same info as was supplied to the InterNIC IN NS eqe.com. IN NS ns.matisse.net. ; Domain and MX Records ; Change XXX.XXX.XXX.XXX to the IP number for the machine that ; is to be called eqecat.com ; If no machine will have that name, remove the line. IN A XXX.XXX.XXX.XXX ; where should we send mail? ; To have mail for eqecat.com go to eqe.eqe.com instead, uncomment ; the next line. ; IN MX 5 eqe.eqe.com. ; canonical names ; This is where you assign host names to specific IP numbers. ; If this file is on the machine whose IP number replaced ; the XXX.XXX.XXX.XXX above, then uncomment the next two lines ;localhost IN A 127.0.0.1 ;loghost IN A 127.0.0.1 ; Replace YYY.YYY.YYY.YYY with a valid IP number on your network. ; The following line assigns the hostname "home" to an IP number. home IN A YYY.YYY.YYY.YYY ; aliases ; Machines can have more than one name. ; The next line makes www.eqecat.com an alias for home.eqecat.com www IN CNAME home ; host info ; This is purely optional. Broadcasts info about specific host names. home.eqecat.com. IN HINFO SGI/Irix5.4.
kill -HUP `cat /etc/named.pid`Those are back-quotes, not single-quotes.
To make a machine a Secondary nameserver you do the following:
secondary eqecat.com 126.96.36.199 eqecat.com.bakThe domain name in the second field is the domain name you are doing secondary name service for. The IP number is the IP number of the Primary Nameserver, and the last entry is the name of the zone file that will be created in the directory with the other zone files (the directory specified on the "directory" line in /etc/named.boot)
In this case, based on the example directory listed above in the explanation of Primary Nameservice named will end up creating a file called /usr/local/etc/named/eqecat.com.bak.
kill -HUP `cat /etc/named.pid`Again, those are back-quotes, not single quotes.