[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: BIND setup



On Sat, Sep 02, 2000 at 09:11:40PM +0200, Sven Burgener wrote:
> Hello
> 
> When starting bind, I get the following entries syslog'd:
> 
> Sep  2 21:04:41 host named[1753]: Zone "168.192.in-addr.arpa" \
> 	(file /etc/bind/homelan.ch.rev): No default TTL set using SOA \
> 	minimum instead
> [...]
> Sep  2 21:04:41 host named[1753]: Zone "0.0.127.in-addr.arpa" \
> 	(file /etc/bind/localhost.rev): No default TTL set using SOA \
> 	minimum instead
> [...]
> 
> Here is the probably relevant snippet of /etc/bind/homelan.ch.rev:
> ----
> @	IN	SOA	host.homelan.ch. svn.homelan.ch. (	
> 			1999030300	; serial no.
> 			172800		; refresh every other day
> 			3600		; retry 1 hour
> 			3600000 	; expire 42 days
> 			604800)		; minimun ttl for RRs --> 100hrs
> ----
> 
> Where lies the misconfiguration?

i ran into this myself, and i think this is the answer:

% man named
[snip]
  Master File Format
   The master file consists of control information and a list of resource
   records for objects in the zone of the forms:

     $INCLUDE <filename> <opt_domain>
     $ORIGIN <domain>
     $TTL <ttl>
     <domain> <opt_ttl> <opt_class> <type> <resource_record_data>
[snip]
  ttl       A integer number that sets the default time-to-live for fu­
            ture records without an explicit ttl.

  opt_ttl   An optional integer number for the time-to-live field.  If
            not set the ttl is taken from the last $TTL statement.  If
            no $TTL statement has occured then the SOA minimum value is
            used and a warning is generated.

for each resource record (RR) you can include a TTL value, which
is reflected in the output of the 'dnsquery' command:

% dnsquery dontuthink.com
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42915
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 7, AUTHORITY: 3, ADDITIONAL: 3
;;      dontuthink.com, type = ANY, class = IN
dontuthink.com.         1D IN A         208.33.90.85
dontuthink.com.         1D IN MX        10 mail.dontuthink.com.
dontuthink.com.         1D IN NS        ns.serensoft.com.
dontuthink.com.         1D IN NS        ns1.centralinfo.net.
dontuthink.com.         1D IN NS        ns2.centralinfo.net.
dontuthink.com.         1D IN TXT       "a puzzle a day keeps the doldra away"
[snip]

here, 1D is repeatedly reported as the TTL value for all these records,
altho in my master file i only specify the 'default' in the SOA record:

@ IN  SOA  dontUthink.com. root.dontUthink.com. (
         200009022	; Serial
         2D		; Refresh
         6H		; Retry
         2W		; Expire
         1D )		; Default TTL
      TXT		"a puzzle a day keeps the doldra away"
      NS		ns.serensoft.com.
      NS		ns1.centralinfo.net.
      NS		ns2.centralinfo.net.
[snip]

i could've specified TTL for each RR --

  24h TXT		"a puzzle a day keeps the doldra away"
  7d  NS		ns.serensoft.com.
  2d  NS		ns1.centralinfo.net.
  36h NS		ns2.centralinfo.net.

but since i didn't do so, it whines.

that's my guess. of course, i could be wrong...



Reply to: