1834839 Members
2948 Online
110070 Solutions
New Discussion

DNS files

 
SOLVED
Go to solution
Fred Martin_1
Valued Contributor

DNS files

Regarding the two files:

/etc/named.data/db.domain
/etc/named.data/db.192.168

I'm wondering if blank lines and/or comment lines can be used liberally throughout the files.

Also, must the data lines be in numerical or alphabetical order?

I'd like to section the files to do some logical organization, i.e. grouped by physical location etc.
fmartin@applicatorssales.com
3 REPLIES 3
Pete Randall
Outstanding Contributor
Solution

Re: DNS files

Fred,

The file formats are specified in RFC1035:

http://rfc.net/rfc1035.html


Pete

Pete
Geoff Wild
Honored Contributor

Re: DNS files

Order doesn't really matter...

You can put comments in the named.conf file and in zone files...

For named.conf:

/* C style comment format needs opening and closing markers
** but allows multiple lines or */
/* single lines */
// C++ style comnents single line format no closing required
# PERL/SHELL style comments single lines no closing required

For zone files - anything on a line past a semi-colon ; is ignored IE:

$TTL 14400 ; 4 hours
168.192.in-addr.arpa IN SOA myserver.mydomain.com. dnsguy.mydomain.com. (
660505 ; serial
1800 ; refresh (30 minutes)
300 ; retry (5 minutes)
3600000 ; expire (5 weeks 6 days 16 hours)
604800 ; minimum (1 week)
)
$TTL 0 ; 0 seconds


Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Fred Martin_1
Valued Contributor

Re: DNS files

Thanks folks.
fmartin@applicatorssales.com