nslookup always said my host IP is 0.0.0.0

Joseph S D Yao jsdy at cospo.osis.gov
Mon Oct 25 16:08:10 UTC 1999


Gabriel Lewis wrote:
> I have the same problem with a properly configured resolv.conf in place.  I
> have replaced the in-named included in Solaris 7 with bind 8.2.1. The newer
> nslookup (/usr/bin/nslookup) displays 0.0.0.0 regardless of what is in
> resolv.conf. /usr/sbin/nslookup, the old version, works fine.  Both versions
> function properly.
> It has been suggested to me that I might have used an older library when I
> compiled it.
> 
> Anybody been here and done this?

Not I.  Cc'ing to the mailing list.

> Joseph S D Yao <jsdy at cospo.osis.gov> wrote in message
> news:<199910222048.QAA19522 at fw1-b.osis.gov>...
> > > Everytime I type nslookup, it displays my hostname but with IP 0.0.0.0.
> I
> > > did remove the /etc/resolv.conf file as I am not using DNS.  I have
> changed
> > > the /etc/nsswitch.conf file to look at the " file" first, then "dns".
> The
> > > /etc/HOSTNAME correctly have my hostname in it. ifconfig eth0 correctly
> > > stated my IP address.  My /etc/hosts file is correctly match the
> hostname
> > > and IP.  I can telnet from other host by using either IP or hostname.
> >
> > Wasted 2 weeks.  Nslookup gets its server from /etc/resolv.conf.  It
> > first lists the DNS server that it is using.  If you have no nameserver
> > listed, or there is no such file - I haven't tested this, but I guess
> > it uses the "0.0.0.0" that you are seeing.  Which is translated to your
> > local host, anyway.
> >
> > Nslookup tests DNS.  If you aren't using DNS, then why even bother with
> > it?  BUT, all hosts connected to the Internet for Internet services DO
> > use DNS, whether they serve it or not; and so will need that resolv.conf
> > file.

--
Joe Yao				jsdy at cospo.osis.gov - Joseph S. D. Yao
COSPO/OSIS Computer Support					EMT-B
-----------------------------------------------------------------------
This message is not an official statement of COSPO policies.


More information about the bind-users mailing list