Whats wrong with my zone files?

Jon Harris j.harris at digital-ink.co.uk
Fri Jul 18 14:13:56 UTC 2008


Hi List

I am just putting in a new BIND server (latest download) and its all
installed fine. The old server is BIND 8.x

(thanks to http://www.unixwiz.net/techtips/bind9-chroot.html for the
walk-through)

However, I seem to be having some problems with the layout of my zone
files:

This is how my zone files normally work, I call my zone file
"db.thedomain.com" which look something like this (names and IP
changed):

----------------------
@ IN SOA ns0.mydomain.net. root.ns0.mydomain.net. (2008071801 10800 3600
604800 86400 )
  IN NS ns0.mydomain.net.
  IN NS ns.enta.net.
  IN MX 5 mail
  IN MX 10 mail.myfallbackserver.net.

localhost       IN      A       127.0.0.1
www             IN      A       10.10.10.1
mail            IN      A       10.10.10.2

---------------------

However, this generates "no TTL specified; using SOA MINTTL instead" 

If I put the TTL in the front:

@ 86400 IN SOA ns0.mydomain.net. root.ns0.mydomain.net. (2008071801
10800 3600 604800 86400 )

- no warning.

Q1. Aren't I specifying the TTL twice? 

Q2. I hate seeing processes start with a screen full of errors (assuming
it will start) , so if I have to do this, is their a way I can script
the change/bulk convert? - I have over 400 zone files to move.

Thanks

Jon Harris




More information about the bind-users mailing list