Operating System - HP-UX
1753900 Members
8059 Online
108810 Solutions
New Discussion юеВ

How to reduce DNS request timeout for HPUX 11.0 ?

 
SOLVED
Go to solution
Artyom Voronchihin
Respected Contributor

How to reduce DNS request timeout for HPUX 11.0 ?

Hello !
Does anybody know a way to reduce DNS request timeout during reverse resolution ? timex shows timeout about 15 seconds. I suppose it is too long, because it takes a lot of time to output routing table with netstat -r.
"Intel inside" is not a label, it's a warning.
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor
Solution

Re: How to reduce DNS request timeout for HPUX 11.0 ?

Hi,

Try this document,

http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000069279052

How To adjust DNS resolver timeouts ?
Document id: KBRC00007792

Hope this helps,
Robert-Jan
John Carr_2
Honored Contributor

Re: How to reduce DNS request timeout for HPUX 11.0 ?

Hi

this link and subsequent threads will give you the answer

:-)

John.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=94507
DIPAK KUMAR ROY
Frequent Advisor

Re: How to reduce DNS request timeout for HPUX 11.0 ?

Try creating $HOME/.nslookuprc file and add an entry "-timeout=n" where "n" is new timeout in seconds.

Thanks
John Carr_2
Honored Contributor

Re: How to reduce DNS request timeout for HPUX 11.0 ?

HI again

I found this in the document which Robert pointed you to :




Date: 8/24/01
Document description: How To adjust DNS resolver timeouts ?
Document id: KBRC00007792



You may provide feedback on this document


How To adjust DNS resolver timeouts ? DocId: KBRC00007792 Updated: 8/1/03 8:05:00 AM

PROBLEM
When a system is disconnected from the network, or if the DNS server(s) are
slow the respond, and the hostname lookup is configured for dns, it takes a
long time trying to resolve the hostname before it falls back to files. A
typical symptom is that users trying to telnet into the system see a delay in
gettng the login prompt after being connected.



CONFIGURATION
Options to resolv.conf require the libc cumulative patch
PHCO_20098 for HPUX 10.20 and patch PHCO_22076 for HPUX 11.0
11.11 systems do not require a patch.

NOTE: Patches may have been superceded check HP's It
resource center www.itrc.hp.com for updated patches.




RESOLUTION

Two new options have been added to make the retrans and retry values
configurable. These 2 values can be set in /etc/resolv.conf as follows:

retrans value in milli seconds
retry value

For example, to have a system wait 1 second for a reply and retry 1 time after
a timeout:

retrans 1000
retry 1

Or these values can be set using environment variables:

RES_RETRANS
RES_RETRY


The environment variable or change to /etc/resolv.conf takes effect
immediately, no reboot is required between changes.

TIP:
Use this command: nsquery hosts hostname or ip to test your
lookups on 11.X; see the nsquery man page for more details.

you also need to be patched upto release PHCO_23684

John.