1846876 Members
3000 Online
110256 Solutions
New Discussion

DNS Timeout

 
Edward Ortiz
Occasional Contributor

DNS Timeout

I am trying to change the DNS Timeout and Retry setting for queries but have hit a wall. I found the following entry on HP's web page which, by the way, doesn't work:

<<< snip >>>
How can I change the default timeout value for a dns query?
DocId: NR0500KBRC00002433 Updated: 6/4/00 7:03:34 AM

PROBLEM

How can the timeout and retransmit default for a dns query be changed?

RESOLUTION

1. Install the following patch:

For HPUX 10.20 install patch PHCO_20098 (libc:y2k:year2000:cumulative) or later

For HPUX 11.0 install patch PHCO_20493 (libc:10.20:compatibility) or later

2. Edit the /etc/resolv.conf and add the parameters retry and retrans. The retrans is specified in milli-seconds. For example to configure the system to only do 2 retries and to retransmit in 3 seconds, edit the file as follows:

domain mydomain.com
nameserver ip_of_nameserver1
nameserver ip_of_nameserver2
retry 2
retrans 3000

<<< end of snip >>>

The system is running HP-UX v10.20 and I have the March 2000 patches installed. The system also has patch PHCO_20441, which has superceded the above mentioned patch for 10.20.

Any help would be greatly appreciated.

Thankyou.
1 REPLY 1
Kofi ARTHIABAH
Honored Contributor

Re: DNS Timeout

Edward:

The timeout and retrans are options in the /etc/resolv.conf file so you should specify after the word options:

domain mydomain.com
nameserver ip_of_nameserver1
nameserver ip_of_nameserver2
options retry:2 retrans:3000

Good luck
nothing wrong with me that a few lines of code cannot fix!