nslookup always said Default Server IP as 0.0.0.0

Barry Margolin barmar at bbnplanet.com
Mon Oct 25 04:13:26 UTC 1999


In article <7ur66f$b0s$1 at m5.att.net.hk>, Preiz <mylife at hongkong.com> wrote:
>Hi, I am new to networking and linux.  Could someone help me on resolving
>host or IP issues.  I am using local /etc/hosts file to resolve the IP and
>hostname mapping.  When I issue "nslookup", it displays my hostname as
>default server but with IP 0.0.0.0.

No, it's telling you that it's using the default DNS server, whose address
is 0.0.0.0.

>I have already changed the /etc/nsswitch.conf to look at the files first,
>then dns.  I have already checked that /etc/HOSTNAME is correctly filled
>with my hostname.  I have also remove the /etc/resolv.conf file as I am not
>using DNS to resolve.  I have vertified my IP is correct configure by
>"ifconfig eth0".  I even stopped the "named process by
>/etc/rc.d/init.d/named stop.  I can actually ping my IP and host address
>from other host, I am able to access the server from other host.

nslookup tests DNS.  If you're not using DNS, why are you using nslookup?

It shows the server address as 0.0.0.0 if there's no /etc/resolv.conf file
or there's no nameserver line in the /etc/resolv.conf file.

-- 
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


More information about the bind-users mailing list