Get errors with NS set to 127.0.0.1 in /etc/resolv.conf

Kevin Darcy kcd at daimlerchrysler.com
Thu Sep 14 20:34:44 UTC 2000


The immediate problem is that you're using "nslookup", which stupidly
aborts if it can't reverse-resolve the address of the nameserver it is
trying to use. Real lookup tools like "dig" don't have this problem.

But the root cause is that 1.0.0.127.in-addr.arpa is not resolvable by
your client. The query is being refused. Why? Do you have some sort of
restrictive "allow-query" in effect?


- Kevin

Arun Khan wrote:

> I have a RH6.2 server with IP=192.168.1.9.  I have configured
> bind-8.2.2_P5
> RPM to act as a primary NS for the LAN (192.168.1.0).  Other nodes on
> the
> LAN have their NS set to 192.168.1.9 and they can get DNS requests
> resolved ... no problems.
>
> However, on the DNS server itself, I get errors when I set the
> nameserver to 127.0.0.1 in it's /etc/resolv.conf but works fine when
> I switch it to 192.168.1.9.  I created the zone files per what is
> discussed
> in the O'Reilly book "DNS and BIND 3rd ED" and checked in
> /var/log/messages
> to verify if bind is listening on 127.0.0.1:53 as well as
> 192.168.1.9:53.
> I have verified the routes on the 'server'.  I can ping itself
> (127.0.0.1
> as well as 192.168.1.9).  It can reach nodes on the LAN as well as the
> WAN,
> likewise other nodes on the LAN can reach it.
>
> I would appreciate your help to understand where I could have wrong in
> my
> setup.
>
> TIA,
> A. Khan
>
>
>                         < from /var/log/messages >
> Sep 13 16:56:56 acentauri named[931]: listening on [127.0.0.1].53 (lo)
> Sep 13 16:56:56 acentauri named[931]: listening on [192.168.1.9].53
> (eth0)
> Sep 13 16:56:56 acentauri named[931]: Forwarding source address is
> [0.0.0.0].1027
> Sep 13 16:56:56 acentauri named[932]: Ready to answer queries.
>
>
>                         < begin /etc/resolv.conf >
> # cat /etc/resolv.conf
> #nameserver 192.168.1.9
> nameserver 127.0.0.1
> search  intra.surjait.com
>                         < end /etc/resolv.conf >
>
>                 < output with NS as 127.0.0.1
>
>                 < output with NS as 192.168.1.9 in /etc/resolv.conf>
> # nslookup ftp.cdrom.com
> Server:  acentauri.intra.surjait.com
> Address:  192.168.1.9
>
> Non-authoritative answer:
> Name:    wcarchive.cdrom.com
> Address:  209.155.82.18
> Aliases:  ftp.cdrom.com        in /etc/resolv.conf >
> # nslookup ftp.cdrom.com
> *** Can't find server name for address 127.0.0.1: Query refused
> *** Default servers are not available






More information about the bind-users mailing list