Operating System - HP-UX
1820644 Members
1909 Online
109626 Solutions
New Discussion

Loopback ping very slow - help please

 
I J Clifford
Advisor

Loopback ping very slow - help please

Hi all,

I have looked at a similar post and found that other suffering slow pings to 127.0.0.1 had issues with nameserver config files.

I am trying to ping loopback by IP and name and it's taking 45 seconds to respond with the first ping packet to stdout. Is it possible there is the 30 second delay caused by a failed response to a DNS server ???.

The DNS server listed in /etc/resolv.conf responds OK with nslookup for any names I send

Utilities like "netstat" take a long time.

Could I ask please for assistance - I suspect the nsswitch.conf file as I have listed below as the cause ?

Output from test to loopback listed below -

+ date
Mon Apr 10 12:17:30 BST 2006
+ nslookup loopback
Using /etc/hosts on: XXXXXXX

looking up FILES
Name: localhost
Address: 127.0.0.1
Aliases: loopback

+ date
Mon Apr 10 12:17:30 BST 2006
+ ping 127.0.0.1 -n1
PING 127.0.0.1: 64 byte packets
64 bytes from 127.0.0.1: icmp_seq=0. time=0. ms

----127.0.0.1 PING Statistics----
1 packets transmitted, 1 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
+ date
Mon Apr 10 12:18:15 BST 2006
+ ping loopback -n1
PING localhost: 64 byte packets
64 bytes from 127.0.0.1: icmp_seq=0. time=0. ms

----localhost PING Statistics----
1 packets transmitted, 1 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/0/0
+ date
Mon Apr 10 12:19:00 BST 2006

/etc/nsswitch.conf :-

passwd: compat
group: compat
hosts: files [NOTFOUND=continue] dns
networks: nis [NOTFOUND=return] files
protocols: nis [NOTFOUND=return] files
rpc: nis [NOTFOUND=return] files
publickey: nis [NOTFOUND=return] files
netgroup: nis [NOTFOUND=return] files
automount: files nis
aliases: files nis
services: nis [NOTFOUND=return] files


All help appreciated,

Cheers

Ian






1 REPLY 1
harry d brown jr
Honored Contributor

Re: Loopback ping very slow - help please

Take a look at this thread: http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=840826

look for my post that included an attachment. The attachment (tar file) allows you to make your HP servers DNS caching servers - which should make your DNS queries very fast.

This configuration solves loopback, localhost and loghost locally without the need to use an external dns server or /etc/hosts, plus it caches other dns queries

live free or die
harry d brown jr
Live Free or Die