- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Telnet and reverse lookup
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
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
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
тАО06-25-2007 08:31 AM
тАО06-25-2007 08:31 AM
resolv.conf point to a WINS server.
nsswitch has "files [ notfound continue ] dns".
neither host files have the other server's ip/hostname information.
Telneting from ServerA to ServerB is fine.
Telneting from ServerB to ServerA yields a long delay.
nslookups on both servers (forward and reverse) yield an instant response, so there is no reason to point to the WINS/DNS setup as being the cause (so I'm being told). HOWEVER, the problem goes away if I update the local hosts file on ServerB with an entry for ServerA.
At this point, everyone is pointing fingers (though it seems each group has a vaild reason to point elsewhere).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 08:52 AM
тАО06-25-2007 08:52 AM
Re: Telnet and reverse lookup
> reverse) yield an instant response [...]
> HOWEVER, the problem goes away if I update
> the local hosts file on ServerB with an
> entry for ServerA.
The HOWEVER clause seems decisive. That
which fixes the problem, fixes the problem.
So, how to explain the DNS seeming to work?
Any chance that Telnet is doing a reverse
look-up on some address different from what
you're feeding into nslookup? I don't have a
good suggestion for how to verify this easily.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 09:03 AM
тАО06-25-2007 09:03 AM
Re: Telnet and reverse lookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 09:04 AM
тАО06-25-2007 09:04 AM
Re: Telnet and reverse lookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 01:52 PM
тАО06-25-2007 01:52 PM
SolutionWhen you put the IP address in /etc/hosts, the resolver sees this first (based on your nsswitch.conf) and immediately connects. If you can't get the windows servers fixed, just put all your production IP addresses in /etc/hosts (thousands of addresses are just fine if needed).
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-25-2007 03:42 PM
тАО06-25-2007 03:42 PM
Re: Telnet and reverse lookup
Also try the following after the name server entries on /etc/resolv.conf
retrans 1000
retry 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 02:56 AM
тАО06-26-2007 02:56 AM
Re: Telnet and reverse lookup
The DNS server that we're instructed to configure, resolves names of the type:
servername.winnet.company.com (windows servers, which get assigned addresses via DHCP). The HPUX servers are all HPservername.company.com. So the winnet server "passes up" to some other server those hostname resolutions (resulting in a "non-authoritative answer").
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 03:39 AM
тАО06-26-2007 03:39 AM
Re: Telnet and reverse lookup
> configure, resolves names [...]
Of course, the real question is who resolves
the _numbers_ when the Telnet server tries to
do the _reverse_ look-up on the connecting
client. Adding an entry to /etc/hosts covers
both directions, but on a DNS server, the two
functions are distinct. (It's easy to
configure a DNS server to do only, say,
name-to-number look-ups, leaving you on your
own for the other direction.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 04:15 AM
тАО06-26-2007 04:15 AM
Re: Telnet and reverse lookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 04:24 AM
тАО06-26-2007 04:24 AM
Re: Telnet and reverse lookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2007 02:18 PM
тАО06-26-2007 02:18 PM
Re: Telnet and reverse lookup
nslookup 12.34.56.78
nsquery hosts 12.34.56.78
If you get no answer back, then telnet login will be delayed by the number of servers listed in /etc/resolv.conf. As you have seen, 'fixing' the problem using /etc/hosts proves that the DNS servers aren't configured correctly. nsquery is particularly useful as it shows the steps taken by any program looking for IP or hostname based on the nsswitch.conf file.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 03:37 AM
тАО06-27-2007 03:37 AM
Re: Telnet and reverse lookup
ARP?
****
Is it only the initial connect, or does the delay happen "always" as long as you're running on the failover?
Could it be that arp cache should be cleared...
Routing
*******
Is there different routing taking place in your network? (ref. traceroute, netstat -r, default gw)
In one of our systems we saw that even though we addressed the secondary interface on a server, we always ended up on the primary (default gw) when the 2 servers where in different vlans (redundancy 'all over' is nice, but not always giving you what you want). We had to create some static routes for the virtual addresses.
DNS (again)
***********
In my opinion all "critical hosts" for the system (tightly integrated hosts, like via NFS) should be defined locally in /etc/hosts.
This require some more managing, but you could have a central managment between these servers and use f.ex. rdist to help out keeping track of them. You might also want to use a file locking while editing the master and a history (for easier recovery).
Others might use DNS... and if it is an Windoze server... it's ehh some challenges.
* Check that both forward and reverse lookup is defined for the failover node.
* If it is Windows Administrators managing the DNS, you might also want to check if they have heard about case-sensitive issues.
Some applications actually treat ServerA differently from servera or SERVERA or ServerA...
The funny thing on some Windoze servers is that they need to key in the Forward lookup one place and the reverse another place. If you delete a Forward entry, the reverse is still there...
So - if you're using DNS, make sure it's right!
/Tor-Arne
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2007 07:29 AM
тАО06-27-2007 07:29 AM
Re: Telnet and reverse lookup
Bill, gave you extra points for the nsquery command (learn something new every day).
I will have to take this information with me for the next test, to make a checklist of things to check.