- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: DNS server failed,all other servers unable to ...
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
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
тАО05-11-2010 04:36 AM
тАО05-11-2010 04:36 AM
there are serveral servers in the LAN enviroment,and one server is configured as dns server at /etc/resolv.conf, and there was no /etc/nsswitch.conf at each server. today, the dns server failed, and I could ping all other servers in the LAN, but I could not telnet to them, I could not even telnet itself from every server(telnet hung, like waiting for reply). Was it a usual circumstance? without nsswitch.conf, TCP/IP request would always query dns and would not bypass dns? It confused me, would I "lost" all the servers if the dns server failes?!
Could any one please expain this to me, and thanks a lot!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 04:40 AM
тАО05-11-2010 04:40 AM
Re: DNS server failed,all other servers unable to login
thanks a lot!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 04:59 AM
тАО05-11-2010 04:59 AM
Re: DNS server failed,all other servers unable to login
With DNS server down, you should enter each server into /etc/hosts to provide smooth coomunication between all the servers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 05:00 AM
тАО05-11-2010 05:00 AM
Re: DNS server failed,all other servers unable to login
By name, or by IP address? As usual, showing
actual commands with their actual output can
be more helpful than vague descriptions and
interpretations.
> [...] I could not telnet to them [...]
"I could not" is not a useful problem
description. It does not say what you did.
It does not say what happened when you did
it.
> [...] telnet hung [...]
Better, but not complete. Where, exactly,
did it hang? (Before the "login" prompt?
After the password response? ...) How long
did you wait for it to unhang?
> [...] would I "lost" all the servers [...]
I don't yet know how "lost" they are?
Are these local servers all specified in each
other's /etc/hosts files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 05:02 AM
тАО05-11-2010 05:02 AM
SolutionTry to configure a "nsswitch.conf" in one server with something like:
hosts: files [NOTFOUND=continue] dns [UNAVAIL=return]
With this, "telnet hostname" will return you to prompt if DNS server is not responding (and the hostname you want is not in "/etc/hosts" file)
Regards,
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 06:20 AM
тАО05-11-2010 06:20 AM
Re: DNS server failed,all other servers unable to login
1,I tried to ping and telnet all using IPs but not hostname,
2, There was no /etc/nsswitch.conf on each server
3, telnet hung after following output:
telnet 0
Trying...
Connected to 0.
Escape character is '^]'.
(0 was just one case)
and I could not wait to estimate how long it would hang
4,All servers were at each's /etc/hosts
5,All the time ping was good for every server
6,why it could not telnet itself when there was a default gateway? and could telnet itself when I delete the default gateway?
7,when the dns server fails, there was no way to telnet to or from all the servers?that was really unacceptable!why would this happen├п┬╝
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 07:05 AM
тАО05-11-2010 07:05 AM
Re: DNS server failed,all other servers unable to login
"telnet localhost" assumming locahost is in the /etc/hosts file like
"127.0.0.1 localhost loopback"
telnet 0 is not the way to telnet itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 07:09 AM
тАО05-11-2010 07:09 AM
Re: DNS server failed,all other servers unable to login
OK, it could not telnet itself using its own IP,when there was a default gateway configured.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 08:18 AM
тАО05-11-2010 08:18 AM
Re: DNS server failed,all other servers unable to login
1. cat /etc/hosts
2. netstat -in
3. netstat -nr
4. cat /etc/services|grep telnet
5. cat /etc/inetd.conf|grep telnet
6. arp -a
7. make sure you have entry in /etc/nsswitch.conf: hosts: files [NOTFOUND=continue TRYAGAIN=continue] dns
8. can you do telnet localhost?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-11-2010 08:48 AM
тАО05-11-2010 08:48 AM
Re: DNS server failed,all other servers unable to login
I have commented the only line of /etc/resolv.conf and restart inetd, and it was ok for telnet. I just want to figure out for what reason could this happen. there was NO /etc/nsswitch.conf at each node(would this force telnet to query dns server without plan b even I did not use hostname?). I am pretty sure that the problem was caused by the failure of dns server, why it queried dns server when I telnet using IPs and what role the default gateway played(without default gateway, host could be telnet from switch) in such LAN enviroment? I consider that it should not query dns server when telnet using IPs, but I now doubt about it. what happened was far beyond my knowledge.
thank you for your reply