Operating System - Linux
1831516 Members
3107 Online
110025 Solutions
New Discussion

Re: nslookup does nothing

 

nslookup does nothing

I am trying to configure a server so that it uses /etc/hosts files first, than 2 DNS servers.

So I have one line in my /etc/nsswitch.conf :

hosts: files dns [NOTFOUND=return]

and 2 lines in my /etc/resolv.conf :

nameserver A.B.C.D
nameserver E.F.G.H

(ip addresses of course, not A.B...)

I works without problem, but nslookup just does nothing. I type nslookup and nothing, nslookup with options, hostname, etc.. nothing. No error message, no message at all, nothing. Anything wrong ?

Version of nslookup :

$Revision: vw: -RW selectors: 'ic27d' -proj integ -- ph_ic27d_i80 'cupi80_ic27dbase_pb(08-Nov-00.16:48:14)' 'BE11.11_IC27A'
Wed Nov 8 18:20:24 PST 2000 $
getinfo.c 5.26 (Berkeley) 3/21/91
Copyright (c) 1985,1989 Regents of the University of California.
main.c 5.42 (Berkeley) 3/3/91
nslookup $Revision: 1.1.213.2 $ Fri Mar 17 13:36:43 GMT 2000

HP-UX 11.11 Thanks
3 REPLIES 3

Re: nslookup does nothing

Sorry forget my question I did post under Linux, I just noticed it.. I am under HP-UX..
Frederic Zeller
Honored Contributor

Re: nslookup does nothing

Hi.

Have you tried re-starting your DNS services ?

Fred
Why should I bother ? The problem will be gone with the next release ...
George Wolanin
New Member

Re: nslookup does nothing

Try using the dig command

ex) dig www.hp.com

George
none