- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Slow response to localhost ping
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
тАО02-08-2005 05:43 AM
тАО02-08-2005 05:43 AM
I get a delay of over 30 seconds before it fails over to FILES and the ping responds.
Believe it or not, Oracle 10G is being disrupted by this because it times out starting the httpd server.
I'm attaching my nsswitch.conf file.
nslookup localhost
Gets an instantaneous response.
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.
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.
BIND 9.2 is installed.
Found this thread.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=213818
Was not very helpful.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 05:48 AM
тАО02-08-2005 05:48 AM
Re: Slow response to localhost ping
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:
hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return] nis
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 05:48 AM
тАО02-08-2005 05:48 AM
Re: Slow response to localhost ping
Any special reason you're doing DNS before files?
When we had requested that localhost be put into the DNS server, our admin went nuts - saying that it shouldn't be there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 06:07 AM
тАО02-08-2005 06:07 AM
Re: Slow response to localhost ping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 06:57 AM
тАО02-08-2005 06:57 AM
Re: Slow response to localhost ping
In the past that has caused significant delays in resolving the ip addresses of remote windows printers which my print spooler must service.
I'll give it a try, run some tests and see if this is acceptable.
If there is another trick I can use to reduce "failover" time I'd like to hear it.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 06:59 AM
тАО02-08-2005 06:59 AM
Re: Slow response to localhost ping
One, make sure you are using bind 9.2.+
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!!!
Anyways, I built a DNS caching server that is at least 16 times faster than using files - once the entry is cached.
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.
attached is a text file with configurations. ENJOY!
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 07:00 AM
тАО02-08-2005 07:00 AM
Re: Slow response to localhost ping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 07:52 AM
тАО02-08-2005 07:52 AM
Re: Slow response to localhost ping
We are cycling the application and re-testing.
We are on the very lastest 9.2 BIND release.
Setting up our own DNS database is problematic.
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.
2) Caching the Microsoft DNS servers causes the same issue as item 1, plus we need admin access to download the DNS database.
Though it may not be the best idea, we are going to see how much FILES first actually breaks.
I'll get back to everyone and assign points before Merijn's cron job runs stats.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 08:04 AM
тАО02-08-2005 08:04 AM
Solution<==Setting up our own DNS database is problematic.
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.
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.
I forgot to add these files:
/etc/nsswitch.conf
hosts: dns[NOTFOUND=continue UNAVAIL=continue FOUND=return] files[NOTFOUND=continue UNAVAIL=continue FOUND=return] files
/etc/resolv.conf
domain YOURDOMAINNAME.com
options ndots:2
We converted over 300 HP-ux servers to DNS Caching and it is ROCK SOLID.
If you need to clear the cache, you simply issue:
rndc flush
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 08:28 AM
тАО02-08-2005 08:28 AM
Re: Slow response to localhost ping
Good Luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 08:34 AM
тАО02-08-2005 08:34 AM
Re: Slow response to localhost ping
live free or die
harry d brown jr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 08:39 AM
тАО02-08-2005 08:39 AM
Re: Slow response to localhost ping
Seems oracle support was demanding my dba make a web page work both with ip address and hostname.
http://tzfat:7781
http://127.0.0.1:7781
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.
It's not the dba's fault. This is one of the reasons they keep me around in spite of my attitude. :-)
We have no run with files first in nsswitch.conf and dns first.
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.
So guess what, Oracle is broken, not the system. Not the first time, not the last.
I'm going to give every helpful response solution level points and thank you for your efforts.
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.
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.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-08-2005 02:57 PM
тАО02-08-2005 02:57 PM
Re: Slow response to localhost ping
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 03:57 AM
тАО02-09-2005 03:57 AM
Re: Slow response to localhost ping
Thanks.
You know my DNS admins are untouchable right?
I'm in a box, but we seem to have oracle stablized, if in a configuration that Oracle support does not support.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 04:09 AM
тАО02-09-2005 04:09 AM
Re: Slow response to localhost ping
Tell them how to do the mouse clicks, if needed I'll provide screenshots :)
Also, You can and should set the timeouts in /etc/resolv.conf
the parameters are 'retry' and 'retrans' (takes ms as metric)
HP-UX 11.00 needed patches for that, 11.11 should do it out the box.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-09-2005 04:42 AM
тАО02-09-2005 04:42 AM
Re: Slow response to localhost ping
http://docs.hp.com/en/B2355-90775/ch02s08.html
usually they're only used for faster switching when a DNS server completely fails, but they should do the trick.
unfortunately bind9 doesn't provide a max-query-timeout for a forward dns resolver, BUT
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.