NAVIGATION

Joseph Crutsinger

Sections of a db (Zone) file in order:

Default Time Out:

$TTL 176644


Default Root Domain:

@


Start of Authority:

SOA


NameServer:

NS


Mail Exchanger:

MX


Default Origin (Same as @):

$ORIGIN


A - Record (IP to Name):

A


Canonical Name (Name to Name-Alias):

CNAME


Internet Address:

IN


Pointer (Last octet to Name-Reverse DB's Only):

PTR



Full Examples:

db (Zone) file:
$TTL 176644
@		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 testing.com.
;
@	        IN	A       10.0.0.1
www		IN	A	10.0.0.4
pop		IN	A	10.0.0.3
ftp		IN	CNAME	www
storm	 	IN  	CNAME   www

db (Reverse) File:
@		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.