NAVIGATION

Joseph Crutsinger

Named Configuration Files

Config File (named.conf): Config file for all domains. Shows the path to the zone file.
Root cache (db.cache): cache containing root domain name server names and addresses
Loopback entry (db.local): Used to locally resolve loopback address
Forward mappings (db.hostname): File mapping host names to IP addresses
Reverse mappings (db.10.0.0): file mapping IP addresses to names
All these files except for named.boot are defined in the named.boot file, and can be set locally.


Examples:

db.cache (root cache):
; <<>> DiG 8.2 <<>> @A.ROOT-SERVERS.NET . ns
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 10
;; flags: qr aa rd; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 13
;; QUERY SECTION:
;;      ., type = NS, class = IN

;; ANSWER SECTION:
.                       6D IN NS        A.ROOT-SERVERS.NET.
.                       6D IN NS        H.ROOT-SERVERS.NET.
.                       6D IN NS        C.ROOT-SERVERS.NET.
.                       6D IN NS        G.ROOT-SERVERS.NET.
.                       6D IN NS        F.ROOT-SERVERS.NET.
.                       6D IN NS        B.ROOT-SERVERS.NET.
.                       6D IN NS        J.ROOT-SERVERS.NET.
.                       6D IN NS        K.ROOT-SERVERS.NET.
.                       6D IN NS        L.ROOT-SERVERS.NET.
.                       6D IN NS        M.ROOT-SERVERS.NET.
.                       6D IN NS        I.ROOT-SERVERS.NET.
.                       6D IN NS        E.ROOT-SERVERS.NET.
			6D IN NS        D.ROOT-SERVERS.NET.
			6D IN NS	G.ROOT-SERVERS.NET.

;; ADDITIONAL SECTION:
A.ROOT-SERVERS.NET.     5w6d16h IN A    198.41.0.4
H.ROOT-SERVERS.NET.     5w6d16h IN A    128.63.2.53
C.ROOT-SERVERS.NET.     5w6d16h IN A    192.33.4.12
Y.ROOT-SERVERS.NET.     5w6d16h IN A    192.112.36.4
F.ROOT-SERVERS.NET.     5w6d16h IN A    192.5.5.241
B.ROOT-SERVERS.NET.     5w6d16h IN A    128.9.0.107
J.ROOT-SERVERS.NET.     5w6d16h IN A    198.41.0.10
K.ROOT-SERVERS.NET.     5w6d16h IN A    193.0.14.129
L.ROOT-SERVERS.NET.     5w6d16h IN A    198.32.64.12
M.ROOT-SERVERS.NET.     5w6d16h IN A    202.12.27.33
I.ROOT-SERVERS.NET.     5w6d16h IN A    192.36.148.17
E.ROOT-SERVERS.NET.     5w6d16h IN A    192.203.230.10
D.ROOT-SERVERS.NET.     5w6d16h IN A    128.8.10.90
G.ROOT-SERVERS.NET.	5w6d16h IN A	192.112.36.4
	
;; Total query time: 61 msec
;; FROM: ns1.dnsclass.com to SERVER: A.ROOT-SERVERS.NET  198.41.0.4
;; WHEN: Sun Oct 10 02:15:00 1999
;; MSG SIZE  sent: 17  rcvd: 436

named.conf:


/*
 * A simple BIND 8.2.2 Patch Release 5 configuration
 */

options {
        directory "/etc/dns";
        // query-source address * port 53;
        multiple-cnames yes;
};

zone "." {
        type hint;
        file "db.cache";

};

zone "0.0.127.in-addr.arpa" in {
	type master;
	notify no;
	file "db.127.0.0";

};

zone "0.0.10.IN-ADDR.ARPA" {
	type master;
	file "db.10.0.0";	

};

zone "dnsclass.com" {
        type master;
        file "db.dnsclass";

};

zone "dnssecondary.com" in {
	type slave;
	file "slave/db.dnssecondary-com";
	masters { 10.0.0.2; };

};

zone "testing.com" {
        type master;
        file "zones/db.testing-com";
};

NOTE: Below Samples are for initial zone or SOA setup. IE: swst.com, dnsclass.com, t-speed.net
db.dnsclass (Forward Mapping-Zone File):

$TTL 176644
dnsclass.com.		IN	SOA	dnsclass.com.	admin.dnsclass.com. (
		
		
		200005070301 ; serial
		10800	; refresh every 3 hours
	    	3600	; 1 hour retry
                604800  ; expire in one week
			)
		IN	NS	ns1.dnsclass.com.
		IN	NS	ns2.dnsclass.com.
		IN	MX	5	mail.dnsclass.com.
		IN	MX	10	mail2.dnsclass.com.
;
$ORIGIN dnsclass.com.
;
@	        IN	A       10.0.0.1
dnsclass.com.	IN	A	10.0.0.1
ns1		IN	A	10.0.0.2
ns2             IN	A	10.0.0.3
www		IN	A	10.0.0.4
www2		IN	A	10.0.0.5
mail		IN	A	10.0.0.3
pop		IN	A	10.0.0.3
pop2		IN	A	10.0.0.4
ftp		IN	A	10.0.0.3
mail2		IN	A	10.0.0.4
localhost	IN	A	127.0.0.1
anon-ftp	IN	A	10.0.0.5

db.10.0.0 (Reverse Mapping):
@		IN 	SOA	dnsclass.com.   admin.dnsclass.com. (

    
		200004020101  		; serial number
	    	10800			; refresh every 3 hours
	    	3600			; 1 hour retry
            	604800			; expire in one week
	    	86400 )			; minimum time to live

			IN    NS	ns1.dnsclass.com.
			IN    NS	ns2.dnsclass.com.
;
$ORIGIN 0.0.10.IN-ADDR.ARPA.	
;
1		IN	PTR	     dnsclass.com.
2      		IN	PTR	     ns1.dnsclass.com.
3		IN	PTR	     ns2.dnsclass.com.
4		IN	PTR	     testing.com.