List Info

Thread: DNS nslint error messages




DNS nslint error messages
user name
2006-01-31 00:37:45
I am running freebsd 5.4-STABLE on an IBM e-series 330
server.  I have recently started playing with DNS and have
been largely successful.  However, nslint reports the
following errors:

nslint: missing "a": localhost. -> 127.0.0.1
nslint: missing "a": localhost.org. -> 0.0.0.1

If I add the line:

localhost.      IN A 127.0.0.1

to my zone file, the first nslint error message goes away,
but I then see the following message in my /var/log/messages
file upon named startup:

Jan 30 18:58:55 gilmer named[15485]: master/gilmer.org:16:
ignoring out-of-zone data (localhost)

So which is correct?  Should I insert the A record in the
zone file and ignore the nslint message, or should I leave
it out and ignore the named message?  Is there something
else improperly configured on my system?

What about the second nslint message above?  Why am I
getting a complaint about 0.0.0.1?

My /etc/namedb/master/gilmer.org file looks like this:
$TTL    3600

gilmer.org.     IN      SOA     ns1.gilmer.org.
admin.gilmer.org.  (
                                20060126        ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum

;DNS Servers
    
  IN      NS      

; Machine Names
localhost.      IN A    127.0.0.1
ns1             IN A    69.46.128.60
    
          IN A    69.46.128.60

;Aliases
mail            IN CNAME        
www             IN CNAME        

; MX Record
    
          IN MX 10        

(Yes, I know this configuration is a little strange, but
right now, I am using one server to do everything until I
get the hang of DNS.)

My /etc/namedb/master/localhost.rev file looks like this:
;       From: (#)localhost.rev 5.1 (Berkeley) 6/30/90
; $FreeBSD: src/etc/namedb/PROTO.localhost.rev,v 1.6
2000/01/10 15:31:40 peter Exp $
;
; This file is automatically edited by the `make-localhost'
script in
; the /etc/namedb directory.
;

$TTL    3600

    
  IN      SOA     ns1.gilmer.org. admin.gilmer.org.  (
                                20060126        ; Serial
                                3600    ; Refresh
                                900     ; Retry
                                3600000 ; Expire
                                3600 )  ; Minimum

        IN      NS      ns1.gilmer.org.


1       IN      PTR     localhost.

Thanks for the help.


Brad

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
DNS nslint error messages
user name
2006-01-31 09:16:27
On 2006-01-30 19:37, Brad Gilmer <bgilmergilmer.org> wrote:
> I am running freebsd 5.4-STABLE on an IBM e-series 330
server.  I have
> recently started playing with DNS and have been largely
successful.
> However, nslint reports the following errors:
>
> nslint: missing "a": localhost. ->
127.0.0.1
> nslint: missing "a": localhost.org. ->
0.0.0.1
>
> If I add the line:
>
> localhost.      IN A 127.0.0.1
>
> to my zone file, the first nslint error message goes
away, but I then
> see the following message in my /var/log/messages file
upon named
> startup:
>
> Jan 30 18:58:55 gilmer named[15485]:
master/gilmer.org:16: ignoring out-of-zone data (localhost)

In this case, I think named is right and nslint is doing
something funny.

> So which is correct?  Should I insert the A record in
the zone file
> and ignore the nslint message, or should I leave it out
and ignore the
> named message?  Is there something else improperly
configured on my
> system?

I don't know why nslint expects to be able to resolve
"localhost." from
a zone file that contains records for
"gilmer.org.".  This is a bit
silly, if you ask me.

> What about the second nslint message above?  Why am I
getting a
> complaint about 0.0.0.1?

This is probably because of some problem with your
`named.conf' file.

> My /etc/namedb/master/gilmer.org file looks like this:
> $TTL    3600
>
> gilmer.org.     IN      SOA     ns1.gilmer.org.
admin.gilmer.org.  (
>                                 20060126        ;
Serial
>                                 3600    ; Refresh
>                                 900     ; Retry
>                                 3600000 ; Expire
>                                 3600 )  ; Minimum
>
> ;DNS Servers
>        IN      NS      

Not a good idea.  To resolve a name in the 'gilmer.org.'
domain, a
remote name server has to contact the nameserver at
'gilmer.org.', but
to resolve 'gilmer.org.' is first has to resolve
'gilmer.org.', which
forms a nice and tight but annoying loop.

I think it would be a better idea to just use the *real* IP
address of
the NS here.

> ; Machine Names
> localhost.      IN A    127.0.0.1

The "localhost." entry is not good here; it should
go.

> ns1             IN A    69.46.128.60
>                IN A    69.46.128.60
>
> ;Aliases
> mail            IN CNAME        
> www             IN CNAME        
>
> ; MX Record
>                IN MX 10        

The rest looks ok to me.

> ;       From: (#)localhost.rev 5.1 (Berkeley) 6/30/90
> ; $FreeBSD: src/etc/namedb/PROTO.localhost.rev,v 1.6
2000/01/10 15:31:40 peter Exp $
> ;
> ; This file is automatically edited by the
`make-localhost' script in
> ; the /etc/namedb directory.
> ;
>
> $TTL    3600
>
>        IN      SOA     ns1.gilmer.org.
admin.gilmer.org.  (
>                                 20060126        ;
Serial
>                                 3600    ; Refresh
>                                 900     ; Retry
>                                 3600000 ; Expire
>                                 3600 )  ; Minimum
>
>         IN      NS      ns1.gilmer.org.
>
> 1       IN      PTR     localhost.

Hmmm, why is a final dot required in this?  This is probably
because
nslint reports that it cannot find information for
"localhost.", as
opposed to, say, "localhost.gilmer.org."

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
DNS nslint error messages
user name
2006-01-31 13:28:39
Brad Gilmer wrote:
> I am running freebsd 5.4-STABLE on an IBM e-series 330
server.  I have recently started playing with DNS and have
been largely successful.  However, nslint reports the
following errors:
> 
> nslint: missing "a": localhost. ->
127.0.0.1
> nslint: missing "a": localhost.org. ->
0.0.0.1

The first message means you're missing a localhost forward
domain.  Normally
this won't matter, because you have a localhost entry in
/etc/hosts, but you
could add a localhost domain to named.conf which contains:

;
; BIND data file for local loopback interface
;
$TTL 604800

    
  IN      SOA     localhost. root.localhost. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Default TTL
    
  NS      localhost.
    
  A       127.0.0.1


The second one recommends adding a line like:

   localhost      IN A 127.0.0.1

... to your gilmer.org zone, using no "." at the
end, to create a
localhost.EXAMPLE.COM entry.

> If I add the line:
> 
> localhost.      IN A 127.0.0.1
> 
> to my zone file, the first nslint error message goes
away, but I then see the following message in my
/var/log/messages file upon named startup:
> 
> Jan 30 18:58:55 gilmer named[15485]:
master/gilmer.org:16: ignoring out-of-zone data (localhost)
> 
> So which is correct?

named is correctly ignoring a forward A record which is out
of zone.

>  Should I insert the A record in the zone file and
ignore the nslint message, or should I leave it out and
ignore the named message?  Is there something else
improperly configured on my system?
> 
> What about the second nslint message above?  Why am I
getting a complaint about 0.0.0.1?
> 
> My /etc/namedb/master/gilmer.org file looks like this:
> $TTL    3600
> 
> gilmer.org.     IN      SOA     ns1.gilmer.org.
admin.gilmer.org.  (
>                                 20060126        ;
Serial
>                                 3600    ; Refresh
>                                 900     ; Retry
>                                 3600000 ; Expire
>                                 3600 )  ; Minimum
> 
> ;DNS Servers
>        IN      NS      

This should be:

	IN	NS	ns1.gilmer.org.

...and you ought to list at least one other NS record which
points to a
different nameserver.  Note also that you only need to
provide the "IN" column
in the SOA record, it will default from there.  So this:

	NS	ns2.gilmer.org.

...should be OK, too.

-- 
-Chuck
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )