- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problems with nsswitch and resolv
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
10-24-2005 04:06 PM
10-24-2005 04:06 PM
I have a host which I am trying to configure as a DNS client .
Have created /etc/resolv.conf and /etc/nsswitch.conf files as below..
/etc/reslov.conf
domain XXX.com.au
nameserver < nameserver IP >
nameserver < nameserver IP >
/etc/nsswitch.conf
hosts: files[NOTFOUND=continue] dns [NOTFOUND=return UNAVAILABLE=RETURN TRYAGAIN=return]
The problem I have is if for some reason the nameservers are unreachable , new telnet /ftp connections start timing out . Also , nslookup just hangs . And the moment I comment out the resolv.conf entries things are back to normal.
I thought having a nsswitch.conf would prevent the system locking up incase the nameservers are unavailable , but this does not seem to be the case.
Any ideas ???
I also noticed that when I configured the nsswitch thru SAM it said that needed to rebbot the host for all changes to take effect. Could this be the issue. I do not have the luxury to do a reboot without going through piles of paperworks and authorizations and was hoping to get around without having to do so....
regards,
Roy
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 04:38 PM
10-24-2005 04:38 PM
Re: Problems with nsswitch and resolv
You have two dns servers. And if both have problems, it will take some time to get error message. And for this time period you may feel that the nslookup is hung. It takes a 30 secs to timeout one dns server and go onto next. so in your case, if both are not available, you will receive a error message/timeout after 1 min.
you may also want to add search directive after domain directive in resolv.conf file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 04:47 PM
10-24-2005 04:47 PM
Re: Problems with nsswitch and resolv
Regards,
Roy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 05:38 PM
10-24-2005 05:38 PM
Re: Problems with nsswitch and resolv
hosts: files dns
It is enough for normal setup. If you are getting timeout then, change nameserver
You can check different resolvation timing with,
# timex nsquery hosts
# timex nsquery hosts
-Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 05:40 PM
10-24-2005 05:40 PM
Re: Problems with nsswitch and resolv
Check man page of resolver. man 4 resolver
you can put retrans and retry options in config file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 06:41 PM
10-24-2005 06:41 PM
Re: Problems with nsswitch and resolv
Regards,
Roy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 06:43 PM
10-24-2005 06:43 PM
Re: Problems with nsswitch and resolv
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 06:49 PM
10-24-2005 06:49 PM
Re: Problems with nsswitch and resolv
Roy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 06:50 PM
10-24-2005 06:50 PM
SolutionYou can add hostname, fqdn and ip-address in /etc/hosts (file repository) and start resolving hosts with files itself. You can have a common /etc/files setup to all unix machines with format as,
It will be good when both of the nameserver is down.
When you are remotly connecting machine then choose IP-Address instead of hostname.
-Muthu