- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ping fails, nslookup works (udp port unreachable)
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
тАО05-14-2004 02:33 AM
тАО05-14-2004 02:33 AM
ping fails, nslookup works (udp port unreachable)
I am running HP-UX 11i. Ping, traceroute and other applications fail occasionally with "unknown host". nslookup always works and if you ping a host after nslookup is run against the host it will work for at least a few seconds. resolv.conf and nsswitch.conf are correct. I have a lot of experience with DNS and don't see a problem there. resolv.conf lists the domain and the two nameservers, nsswitch.conf lists files then DNS for host lookups.
I was able to determine the following behaviour on failures with tcpdump.
The local server opens a random port > 1024 to the DNS server port 53. The DNS server responds to the randomly opened port. The local server dumps the response (sends another message to the DNS server saying "udp port xxxxx unreachable for dns.server.com".
I have several 11i servers that work and several that don't. The ones that don't all display the same behavior. Patch levels are the same on all (working and non-working). chatr reports that all utilities (ping, nslookup, etc.) are using libc.2 which is what seems to be correct.
Any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 02:58 AM
тАО05-14-2004 02:58 AM
Re: ping fails, nslookup works (udp port unreachable)
netstat -i
Do you have a network group with a scope? can they monitor the network traffic at the same time as when you do you pings?
Does ping fail completely - or do you just miss some packets? That is when it fails, is it always 100% packet loss?
I've seen things like this happen when your lan cards are set to auto-negotiate - better to hard code the speed/duplex and the switch ports.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 03:37 AM
тАО05-14-2004 03:37 AM
Re: ping fails, nslookup works (udp port unreachable)
If the hosts or dns are on the same segment as host you're pinging from, there should be an arp -a entry, then you can confirm mac address checking for an ip confilct.
A weird one from years ago for me was someone making a static route entry on another system with low metric that told all systems that " the shourtest route to any system is through me"
Condition was systems that the offending 'router' knew about always worked, and other systems would connect only if that 'router' was busy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 05:11 AM
тАО05-14-2004 05:11 AM
Re: ping fails, nslookup works (udp port unreachable)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 05:35 AM
тАО05-14-2004 05:35 AM
Re: ping fails, nslookup works (udp port unreachable)
Another tool you can use:
linkloop
linkloop -i 1 0x00306E21A7BF
Link connectivity to LAN station: 0x00306E21A7BF
-- OK
-i = interface to go out on
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 05:38 AM
тАО05-14-2004 05:38 AM
Re: ping fails, nslookup works (udp port unreachable)
is the info from netstat -rvn correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 06:13 AM
тАО05-14-2004 06:13 AM
Re: ping fails, nslookup works (udp port unreachable)
localserver.company.org.50117 > dnsserver.company.org.domain: [udp sum ok] 52272+ A? remoteserver. (25) (DF) (ttl 64, id 59686, len 53)
dnsserver.company.org.domain > localserver.company.org.50117: 52272 NXDomain q: A? remoteserver. 0/1/0 ns: . (100) (DF) (ttl 62, id 26512, len 128)
localserver.company.org > dnsserver.company.org: icmp: localserver.company.org udp port 50117 unreachable for dnsserver.company.org > localserver.company.org [|udp] (DF) (ttl 62, id 26512, len 128) (DF) (ttl 255, id 59688, len 112)
As you can see the DNS server responds and the response makes it to our lan card. All connectivity is good. When it is working the first two packets are exactly the same as above and the third packet doesn't exist. When it fails we see the third packet. It seems like our server is closing the udp port that it expects to get the response on.
All applications seem to cause this behavior except nslookup so since nslookup works that further indicates that connectivity should be OK.
More thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 06:25 AM
тАО05-14-2004 06:25 AM
Re: ping fails, nslookup works (udp port unreachable)
under today's extremely dire situations, most firewall admins block UDP connections to prevent a DOS attack. They may let a few packets pass to test connectivity and after the number of packets reach a certain threshold they may start blocking them with the assumption of the connectivity between the hosts has been verified and passage of UDP packets is no longer necessary.
especially the interfaces you are pinging are facing the internet and you are not the firewall admin, this is a plausible scenario.
Just a thought.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 08:35 AM
тАО05-14-2004 08:35 AM
Re: ping fails, nslookup works (udp port unreachable)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 08:51 AM
тАО05-14-2004 08:51 AM
Re: ping fails, nslookup works (udp port unreachable)
Try nsquery
nsquery hosts servernameinhostsfile
nsquery hosts servernamenotinhostsfile
post output please.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 09:17 AM
тАО05-14-2004 09:17 AM
Re: ping fails, nslookup works (udp port unreachable)
nsquery hosts matrix
using "files dns" for the hosts policy
searching /etc/hosts for matrix
hostname: matrix
address: x.x.x.x
switch configuration: terminate search
nsquery hosts liberty
using "files dns" for the hosts policy
searching /etc/hosts for liberty
liberty was NOTFOUND
switch configuration: allows fallback
searching dns for liberty
hostname: liberty.company.org
address: x.x.x.x
switch configuration: terminates search
This always works fine. That is why I don't think there is a connectivity/resolver issue. nslookup/nsquery always work. But ping/telnet/etc. do not. And when the do fail we can clearly see that our server is discarding the DNS response packet. It closes the port before the DNS response to ping/telnet/etc. but not for ns commands.
What would make ping fail even though nslookup always works?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-14-2004 09:30 AM
тАО05-14-2004 09:30 AM
Re: ping fails, nslookup works (udp port unreachable)
From the results of nsquery - I'd say you are bang on - no DNS issues.
What about the possibility that another device on your network has the same ip as the server you are pinging from?
What about arp cache?
I've had issues pinging printers when my package fails over - sometimes the printers don't update the arp cache and don't know the way to the new mac address that the ip is now bound to - usualy requires a reboot of the printer...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2004 10:33 AM
тАО05-15-2004 10:33 AM
Re: ping fails, nslookup works (udp port unreachable)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2004 05:17 AM
тАО05-16-2004 05:17 AM
Re: ping fails, nslookup works (udp port unreachable)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2004 04:48 PM
тАО05-16-2004 04:48 PM
Re: ping fails, nslookup works (udp port unreachable)
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2004 06:13 PM
тАО05-16-2004 06:13 PM
Re: ping fails, nslookup works (udp port unreachable)
regards
Mobeen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2004 11:57 PM
тАО05-16-2004 11:57 PM
Re: ping fails, nslookup works (udp port unreachable)
So it really was that our server was closing the UDP port before it got the DNS server's response. It had nothing to do with the DNS server or the network equipment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2004 12:43 AM
тАО06-03-2004 12:43 AM
Re: ping fails, nslookup works (udp port unreachable)
I have the same problem on my linux machine. I haven't found a solution yet, but when I stop the firewall service (ipchains), all works okay. When I start up my firewall services, tcpdump shows the outgoing udp packet as well as the incoming udp packet. However, on the 3rd response, I get a udp port xxxx unreachable.
Any suggestions?
Luq A