- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: nslookup problem
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
Forums
Discussions
Discussions
Discussions
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
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
01-14-2003 11:15 PM
01-14-2003 11:15 PM
When I try to nslookup the server, it shows the below:
$ nslookup hps1_dc
*** Can't find address for server hps1_dc: Server failed
Using /etc/hosts on: hps1_dc
looking up FILES
Name: hps1_dc
Address: 10.16.1.2
Why it shows: "*** Can't find address for server hps1_dc: Server failed
Using /etc/hosts on: hps1_dc"
nslookup for other server does not show this message.
Thanks
Richard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2003 11:22 PM
01-14-2003 11:22 PM
Solutionfirst DNS then local hosts file.
this should be configured under /etc/nsswitch.conf file.
Now when you do a nslookup it reaches the DNS and tries to resolve the hostname "hps1_dc" but this could not be resolved with the DNS server as the DNS server has no entry for the server hps1_dc.
So it goes next to the local hosts file to resolve the hostname hps1_dc and finds it there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 12:02 AM
01-15-2003 12:02 AM
Re: nslookup problem
There is no dns server running in our systems. And I found the nsswitch.conf file only on the hps1_dc server, no other server has it. So, they don't have any problem in the nslookup.
What to do? How can I change the nslookup's quary so it will not look in the nsswitch.conf file ?
Thanks
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 12:10 AM
01-15-2003 12:10 AM
Re: nslookup problem
# more /etc/nsswitch.conf
hosts: files [NOTFOUND=continue UNAVAIL=return TRYAGAIN=return]
To test startusing 'nslookup' that is certainly included in your /etc/hosts file.
If you have an /etc/resolv.conf file you may wish to remove it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 12:17 AM
01-15-2003 12:17 AM
Re: nslookup problem
just use hosts
for the files line entry as Micheal suggested.
Revert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 12:42 AM
01-15-2003 12:42 AM
Re: nslookup problem
1)I have nsswitch.conf file which has following entry:
hps1_dc /etc #cat nsswitch.conf
hosts: files [NOTFOUND=continue] dns
Should I change it to:
hosts: files [NOTFOUND=continue UNAVAIL=return TRYAGAIN=return]
Will this change nslookup behavior to look only on hosts file?
2) There is no resolv.conf file in etc dir. it has been changed to resolv.conf.copy, so it has no effect, I guess.
hps1_dc /etc #cat resolv.conf.copy
search cdbl.com
nameserver 10.16.1.2
THanks
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 01:16 AM
01-15-2003 01:16 AM
Re: nslookup problem
2)yes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 01:47 AM
01-15-2003 01:47 AM
Re: nslookup problem
Thanks for your help, problem solved by changing nsswitch.conf file.
Thanks
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2003 10:27 PM
01-15-2003 10:27 PM
Re: nslookup problem
I think the best thing is to provide your "/etc/resolv.conf", "nsswitch.conf", and an extract from "/etc/hosts".
You can also run nslookup with the "-d" switch and that should show exactly what the named process is doing.