<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Slow response to localhost ping in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481310#M562132</link>
    <description>I've run into the same problem before on a bunch of Linux servers.  The solution that I found (and had mental trouble getting over) was to a) put files first in nsswitch.conf, and then b) put the hostname as 127.0.0.1 in the hosts file - this solved all of my problems with getting a raft of Oracle services to agree to come up when I wanted them to.  Although my solution had to deal with having the services respond to both actual and virtual IP's (might be different than what you're dealing with).  The end solution was to map them both to the loopback address in the hosts file.  I tried it as a lark out of desperation - and oddly enough - it worked. &lt;BR /&gt;&lt;BR /&gt;Good Luck.&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Feb 2005 16:28:47 GMT</pubDate>
    <dc:creator>TwoProc</dc:creator>
    <dc:date>2005-02-08T16:28:47Z</dc:date>
    <item>
      <title>Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481301#M562123</link>
      <description>I type ping localhost&lt;BR /&gt;&lt;BR /&gt;I get a delay of over 30 seconds before it fails over to FILES and the ping responds.&lt;BR /&gt;&lt;BR /&gt;Believe it or not, Oracle 10G is being disrupted by this because it times out starting the httpd server.&lt;BR /&gt;&lt;BR /&gt;I'm attaching my nsswitch.conf file.&lt;BR /&gt;&lt;BR /&gt;nslookup localhost&lt;BR /&gt;&lt;BR /&gt;Gets an instantaneous response.&lt;BR /&gt;&lt;BR /&gt;Is there a way I can get the switch to FILES to happen more quickly. If there is no response from the DNS server I need not to wait 30 seconds.&lt;BR /&gt;&lt;BR /&gt;If this is controlled at the DNS server, let me know and I'll talk to my Microsoft people. If however I can control this with configuration changes to hp-ux, I'd like to know how.&lt;BR /&gt;&lt;BR /&gt;BIND 9.2 is installed.&lt;BR /&gt;&lt;BR /&gt;Found this thread. &lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=213818" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=213818&lt;/A&gt;&lt;BR /&gt;Was not very helpful.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 08 Feb 2005 13:43:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481301#M562123</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-02-08T13:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481302#M562124</link>
      <description>Steve,&lt;BR /&gt;&lt;BR /&gt;First off, I'd search hosts first.  It's instantaneous and all your local systems should be there for instant resolution.  Then you go to dns if need be.  Like this:&lt;BR /&gt;&lt;BR /&gt;hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return] nis&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 08 Feb 2005 13:48:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481302#M562124</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-02-08T13:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481303#M562125</link>
      <description>Just an opinion, but I would change your nsswitch to use files first, then DNS.  The reason being that you can override DNS with the hosts file (I use this to redirect machine-to-machine traffic over a different network than machine-to-users).  &lt;BR /&gt;&lt;BR /&gt;Any special reason you're doing DNS before files?  &lt;BR /&gt;&lt;BR /&gt;When we had requested that localhost be put into the DNS server, our admin went nuts - saying that it shouldn't be there.</description>
      <pubDate>Tue, 08 Feb 2005 13:48:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481303#M562125</guid>
      <dc:creator>Gary L. Paveza, Jr.</dc:creator>
      <dc:date>2005-02-08T13:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481304#M562126</link>
      <description>I agree 100%.  Go with files first and then DNS.  If you must use DNS first, you could try adding a localhost entry to DNS with the 127.0.0.1 IP and see if that helps.</description>
      <pubDate>Tue, 08 Feb 2005 14:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481304#M562126</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-02-08T14:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481305#M562127</link>
      <description>I was afraid you'd suggest going files first.&lt;BR /&gt;&lt;BR /&gt;In the past that has caused significant delays in resolving the ip addresses of remote windows printers which my print spooler must service.&lt;BR /&gt;&lt;BR /&gt;I'll give it a try, run some tests and see if this is acceptable.&lt;BR /&gt;&lt;BR /&gt;If there is another trick I can use to reduce "failover" time I'd like to hear it.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 08 Feb 2005 14:57:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481305#M562127</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-02-08T14:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481306#M562128</link>
      <description>&lt;BR /&gt;One, make sure you are using bind 9.2.+&lt;BR /&gt;&lt;BR /&gt;second, your DNS server as Patrick pointed out, does not have localhost defined. This is a sticky point. Purists will say it shouldn't be there and others say it should. The Internet root servers have it defined!!!&lt;BR /&gt;&lt;BR /&gt;Anyways, I built a DNS caching server that is at least 16 times faster than using files - once the entry is cached.&lt;BR /&gt;&lt;BR /&gt;You have to define localhost as a zone. I included loopback and loghost, thus covering any platform (mostly solaris). This usually works on hp-ux, linux, solaris and aix. With aix and any other system that is IP6 enabled, this probably will NOT work.&lt;BR /&gt;&lt;BR /&gt;attached is a text file with configurations. ENJOY!&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Feb 2005 14:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481306#M562128</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-08T14:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481307#M562129</link>
      <description>If you're worried about your printers, then why not put them in your hosts file?  I know it can be a pain to keep up with the entries, but I find that having a host file which contains commonly used addresses (I even put companies who we ftp to) helps a lot.  One thing - if you have a lot of servers, it really helps if you can standardize your file.  I have to keep 3 different ones, but that beats having dozens.</description>
      <pubDate>Tue, 08 Feb 2005 15:00:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481307#M562129</guid>
      <dc:creator>Gary L. Paveza, Jr.</dc:creator>
      <dc:date>2005-02-08T15:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481308#M562130</link>
      <description>The files first scenario immediately broke oracle ias 10G.&lt;BR /&gt;&lt;BR /&gt;We are cycling the application and re-testing.&lt;BR /&gt;&lt;BR /&gt;We are on the very lastest 9.2 BIND release. &lt;BR /&gt;&lt;BR /&gt;Setting up our own DNS database is problematic.&lt;BR /&gt;&lt;BR /&gt;1) Management doesn't want it, even if it solves a problem. He perceives complexity and maintenance issues and is worried what happens if I get hit by a bus.&lt;BR /&gt;&lt;BR /&gt;2) Caching the Microsoft DNS servers causes the same issue as item 1, plus we need admin access to download the DNS database.&lt;BR /&gt;&lt;BR /&gt;Though it may not be the best idea, we are going to see how much FILES first actually breaks.&lt;BR /&gt;&lt;BR /&gt;I'll get back to everyone and assign points before Merijn's cron job runs stats.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 08 Feb 2005 15:52:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481308#M562130</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-02-08T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481309#M562131</link>
      <description>&lt;BR /&gt;&amp;lt;==Setting up our own DNS database is problematic.&lt;BR /&gt;&lt;BR /&gt;DNS Caching is NOT the same as being a DNS Server. The local db.zone files are just to locally answer localhost, loghost and loopbak - NOTHING ELSE.&lt;BR /&gt;&lt;BR /&gt;The rest of the CACHE is EMPTY, until a query occurs. At that time it goes to DNS, gets the info and CACHES it in memory. It WILL respect the TTL (Time-To-Live). When the TTL expires the Cached entry is automatically deleted. It will not look it up again until a process requests that ip/name again.&lt;BR /&gt;&lt;BR /&gt;I forgot to add these files:&lt;BR /&gt;&lt;BR /&gt;/etc/nsswitch.conf&lt;BR /&gt;&lt;BR /&gt;hosts: dns[NOTFOUND=continue UNAVAIL=continue FOUND=return] files[NOTFOUND=continue UNAVAIL=continue FOUND=return] files&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/etc/resolv.conf &lt;BR /&gt;domain YOURDOMAINNAME.com&lt;BR /&gt;options ndots:2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We converted over 300 HP-ux servers to DNS Caching and it is ROCK SOLID.&lt;BR /&gt;&lt;BR /&gt;If you need to clear the cache, you simply issue:&lt;BR /&gt;&lt;BR /&gt;rndc flush&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr &lt;BR /&gt;</description>
      <pubDate>Tue, 08 Feb 2005 16:04:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481309#M562131</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-08T16:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481310#M562132</link>
      <description>I've run into the same problem before on a bunch of Linux servers.  The solution that I found (and had mental trouble getting over) was to a) put files first in nsswitch.conf, and then b) put the hostname as 127.0.0.1 in the hosts file - this solved all of my problems with getting a raft of Oracle services to agree to come up when I wanted them to.  Although my solution had to deal with having the services respond to both actual and virtual IP's (might be different than what you're dealing with).  The end solution was to map them both to the loopback address in the hosts file.  I tried it as a lark out of desperation - and oddly enough - it worked. &lt;BR /&gt;&lt;BR /&gt;Good Luck.&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Feb 2005 16:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481310#M562132</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-02-08T16:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481311#M562133</link>
      <description>Again, I have this configuration on Hp-ux, Linux, AIX, Solaris Sparc and Solaris x86.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 08 Feb 2005 16:34:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481311#M562133</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2005-02-08T16:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481312#M562134</link>
      <description>This entire thread is a red herring.&lt;BR /&gt;&lt;BR /&gt;Seems oracle support was demanding my dba make a web page work both with ip address and hostname.&lt;BR /&gt;&lt;BR /&gt;http://tzfat:7781&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://127.0.0.1:7781" target="_blank"&gt;http://127.0.0.1:7781&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Of course they didn't bother to tell my DBA that he needed to run it on a browser running off the server. He was running it in IE 6 from his desktop, which of course got no answer since localhost is not defined in our windows configuration.&lt;BR /&gt;&lt;BR /&gt;It's not the dba's fault. This is one of the reasons they keep me around in spite of my attitude. :-)&lt;BR /&gt;&lt;BR /&gt;We have no run with files first in nsswitch.conf and dns first.&lt;BR /&gt;&lt;BR /&gt;Each configuration generates different oracle errors. When we hard code 127.0.0.1 into the oracle configuration files the product works, but blows the testing user out at randome periods of between 2 and 120 minutes.&lt;BR /&gt;&lt;BR /&gt;So guess what, Oracle is broken, not the system. Not the first time, not the last.&lt;BR /&gt;&lt;BR /&gt;I'm going to give every helpful response solution level points and thank you for your efforts.&lt;BR /&gt;&lt;BR /&gt;I'd actually like to find out how to deal with that delay situation in a way not yet proposed in this thread, so I'm leaving it open.&lt;BR /&gt;&lt;BR /&gt;Thanks. They always seem to have these probems when I have 15 things to do. Have to batton down the hatches prior to making an unplanned trip to Israel.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 08 Feb 2005 16:39:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481312#M562134</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-02-08T16:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481313#M562135</link>
      <description>The magic number in DNS delays is 30 seconds. This is the length of time that the resolver waits for a response from a DNS server. If all the servers (in resolv.conf) refuse to talk to your system, it will take 90 seconds before trying the next choice in nsswitch.conf. Using FILES first should not be a problem except in the Oracle strangeness you've seen. When I see 30 second delays, I immediately test each individual DNS server in resolv.conf using nslookup &lt;SOME_HOST&gt; DNS_server. By specifying the DNS server, nslookup bypasses FILES and first tries the specified server. If it fails, it's time to go after the DNSadmins. 127.0.0.1 and other localhost entries are always problematic for DNS servers, thus the reason to use FILES first then DNS.&lt;/SOME_HOST&gt;</description>
      <pubDate>Tue, 08 Feb 2005 22:57:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481313#M562135</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-02-08T22:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481314#M562136</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;You know my DNS admins are untouchable right?&lt;BR /&gt;&lt;BR /&gt;I'm in a box, but we seem to have oracle stablized, if in a configuration that Oracle support does not support.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 09 Feb 2005 11:57:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481314#M562136</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-02-09T11:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481315#M562137</link>
      <description>SEP: Usually Windows ADS admins have never read a book on DNS administrator (let alone X.500 :)) and just don't add a reverse entry for localhost. Out of 4 AD setups I saw, 4 didn't do it properly.&lt;BR /&gt;&lt;BR /&gt;Tell them how to do the mouse clicks, if needed I'll provide screenshots :)&lt;BR /&gt;&lt;BR /&gt;Also, You can and should set the timeouts in /etc/resolv.conf &lt;BR /&gt;the parameters are 'retry' and 'retrans' (takes ms as metric)&lt;BR /&gt;HP-UX 11.00 needed patches for that, 11.11 should do it out the box.&lt;BR /&gt;&lt;BR /&gt;I'd set the order in /etc/nsswitch.conf to first lookup to /etc/hosts (only containing localhost and hostname entries), set the timeouts well below oracle's and beat the DNS admins to fix their stuff.</description>
      <pubDate>Wed, 09 Feb 2005 12:09:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481315#M562137</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-02-09T12:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Slow response to localhost ping</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481316#M562138</link>
      <description>Please have a look at the following document - it's about changing the retry the magic retry and retrans parameters.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90775/ch02s08.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90775/ch02s08.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;usually they're only used for faster switching when a DNS server completely fails, but they should do the trick.&lt;BR /&gt;unfortunately bind9 doesn't provide a max-query-timeout for a forward dns resolver, BUT&lt;BR /&gt;You could also put the localhost.your.domain.com zone in Your bind config on the oracle without causing any influences to the outside network.</description>
      <pubDate>Wed, 09 Feb 2005 12:42:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/slow-response-to-localhost-ping/m-p/3481316#M562138</guid>
      <dc:creator>Florian Heigl (new acc)</dc:creator>
      <dc:date>2005-02-09T12:42:55Z</dc:date>
    </item>
  </channel>
</rss>

