- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nslookup doing nothing
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2002 02:19 AM
тАО07-04-2002 02:19 AM
nslookup doing nothing
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2002 02:26 AM
тАО07-04-2002 02:26 AM
Re: nslookup doing nothing
Try
/etc/nsswitch.conf
hosts: files [NOTFOUND=continue] dns
In you /etc/resolve.conf , you have your nameservers ok but you are missing one key element
search
nameserver A.B.C.D
nameserver E.F.G.H
HTH
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2002 02:35 AM
тАО07-04-2002 02:35 AM
Re: nslookup doing nothing
hosts: files [NOTFOUND=continue] dns
and
search
nameserver A.B.C.D
nameserver E.F.G.H
I added the search to my domain but it didn't help. nslookup still doesn't say a word..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2002 02:39 AM
тАО07-04-2002 02:39 AM
Re: nslookup doing nothing
I tried to ping the first nameserver of my resolv.conf, it is down, and the second server is up..
Does nslookup search first in hosts and then on the DNS servers as I told in nsswitch ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2002 02:47 AM
тАО07-04-2002 02:47 AM
Re: nslookup doing nothing
In /etc/nsswitch.conf entry should look like this,
hosts: files [NOTFOUND=continue] dns
While adding DNS servers
nameserver A.B.C.D and
nameserver E.F.G.H
use SAM , by making entry in /etc/resolv.conf wouldn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2002 02:56 AM
тАО07-04-2002 02:56 AM
Re: nslookup doing nothing
Have you tried with another address.
Try
grep
I take it won't be there because nsswitch can't find it and is having to resort to looking at dns
The first entry in your /etc/resolv.conf i take it is your primary dns server
You can get nslookup to go straight to the secondary with the use of the server command
With the way your nswwitch is configured you should get
#nslookup
looking up files in /etc/hosts
Then type
server
you will get
default name server
www.hp.com
Name server:
Address:
Trying DNS
Addresses:
Give it a go
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2002 05:07 AM
тАО07-04-2002 05:07 AM
Re: nslookup doing nothing
My config :
/etc/resolv.conf
domain
search
nameserver A.B.C.D
nameserver E.F.G.H
/etc/nsswitch.conf
hosts: files [NOTFOUND=continue] dns
My problem was that the nameserver A.B.C.D was down when I was doing my config, and I didn't notice it. I pur for the moment E.F.G.H (2nd DNS server) as first DNS. Everything works well.
2 questions :
- Is the domain
- How can I reduce the timeout value between the 2 DNS servers ? Actually, if the 1st DNS server is down, it tries for a few minutes before trying the secondary DNS server. I would like to configure 5/10 seconds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2002 10:39 AM
тАО07-08-2002 10:39 AM
Re: nslookup doing nothing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2002 12:01 PM
тАО07-08-2002 12:01 PM
Re: nslookup doing nothing
Try this,
/etc/nsswitch.conf file,
hosts : files [NOTFOUND=continue] dns
/etc/resolv.conf file,
search your_domain.com
nameserver a.b.c.d
nameserver e.f.g.h
Now do a nslookup,
nslookup
> server1 (exist in /etc/hosts file)
> server2 (does not exist in /etc/hosts but exists in DNS)
> exit
Hope this helps.
Regds