<?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: resolv.conf defaults in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/resolv-conf-defaults/m-p/2662059#M48622</link>
    <description>Using man pages from other flavors of Unix can create problems. HP-UX options (per the HP-UX man page for resolv.conf) lists ndots: as the only option for resolv.conf.&lt;BR /&gt;&lt;BR /&gt;However, if you have the minimum patch PHCO_20098 (10.20) or PHCO_22076 (11.0) (or successor patches) then retrans: and retry: are available. Alternatively, the environment variables RES_RETRANS and RES_RETRY can be set for the same results.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, all versions of 10.20, 11.0 and 11i do not have updated man pages yet.&lt;BR /&gt;&lt;BR /&gt;However, I would seriously consider using nsswitch.conf rather than shorter resolv.conf timeouts. IP/hostname lookups occur much more often than you would expect (ie, once for every filename on a network backup system). By configuring files, then DNS, name resolution for important addresses is virtually instantaneous, requires no LAN traffic, and survives unreliable DNS servers.</description>
    <pubDate>Mon, 11 Feb 2002 03:42:07 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2002-02-11T03:42:07Z</dc:date>
    <item>
      <title>resolv.conf defaults</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resolv-conf-defaults/m-p/2662058#M48621</link>
      <description>I would like to change certain entries in a vanilla resolv.conf to include retry and retrans as recommended by the forum previously.&lt;BR /&gt;&lt;BR /&gt;I have read two man pages from other non HP-UX man pages due to the fact that the HP-UX man page is not a decriptive about these settings as I would have liked.&lt;BR /&gt;&lt;BR /&gt;I found these:&lt;BR /&gt;&lt;BR /&gt;retry:n Sets the number of attempts made to connect to each name server. While retry:0 is allowed, it is equivalent to retry:1. The default is 4.&lt;BR /&gt;&lt;BR /&gt;retrans:n Sets the basic retransmit timeout, in seconds. The default is 5. An exponential backoff algorithm is used, so the default values for retry and retrans result in 5+10+20+40=75 seconds of total timeout for each name server. While retrans:0 is allowed, it is equivalent to retrans:1.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;&lt;BR /&gt;Using a non working DNS entry (i.e. incorrect ip for entry nameserver). I produced this result for ping (uses gethostbyname).&lt;BR /&gt;&lt;BR /&gt;Vanilla resolv.conf&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;# timex ping prddb0&lt;BR /&gt;ping: unknown host prddb0&lt;BR /&gt;&lt;BR /&gt;real     2:30.06&lt;BR /&gt;user        0.04&lt;BR /&gt;sys         0.03&lt;BR /&gt;&lt;BR /&gt;With an additional.. in resolv.conf&lt;BR /&gt;retry 2&lt;BR /&gt;retrans 1&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;# timex ping prddb0&lt;BR /&gt;ping: unknown host prddb0&lt;BR /&gt;&lt;BR /&gt;real        0.10&lt;BR /&gt;user        0.05&lt;BR /&gt;sys         0.02&lt;BR /&gt;&lt;BR /&gt;I have had itrc members recommend retrans 3000 - this conflicts with the man page above. But with the evidence above, the "defaults" must be incorrect as per man entries above:&lt;BR /&gt;&lt;BR /&gt;Using "man" defaults from above (i.e. should be no change on vanilla resolv.conf)&lt;BR /&gt;&lt;BR /&gt;retry 4&lt;BR /&gt;retrans 5&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;# timex ping prddb0&lt;BR /&gt;ping: unknown host prddb0&lt;BR /&gt;&lt;BR /&gt;real        0.23&lt;BR /&gt;user        0.04&lt;BR /&gt;sys         0.03&lt;BR /&gt;&lt;BR /&gt;Obviously the defaults for other Unix flavours (retry=4,retrans=5) are not equivilant to the defaults used by HP-UX.&lt;BR /&gt;&lt;BR /&gt;I doubt retrans default is 5 on HP-UX&lt;BR /&gt;&lt;BR /&gt;Another example using only:&lt;BR /&gt;retry 4&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;# timex ping prddb0&lt;BR /&gt;ping: unknown host prddb0&lt;BR /&gt;&lt;BR /&gt;real     2:30.07&lt;BR /&gt;user        0.05&lt;BR /&gt;sys         0.03&lt;BR /&gt;&lt;BR /&gt;From this, I can assume that default retry is as above, but retrans is certainly not default 4&lt;BR /&gt;&lt;BR /&gt;My questions are:&lt;BR /&gt;&lt;BR /&gt;Q1: What are the default retry and retrans used for HP-UX.&lt;BR /&gt;Q2: What would you suggest the optimum defaults to be, given that 2 minutes, 30 seconds (above) is unacceptable before resolving from a secondary DNS server (the primary being non pingable in the above example - with no secondary hence timex showing delay).&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Glenn</description>
      <pubDate>Mon, 11 Feb 2002 03:00:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resolv-conf-defaults/m-p/2662058#M48621</guid>
      <dc:creator>Glenn L. Stewart</dc:creator>
      <dc:date>2002-02-11T03:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: resolv.conf defaults</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/resolv-conf-defaults/m-p/2662059#M48622</link>
      <description>Using man pages from other flavors of Unix can create problems. HP-UX options (per the HP-UX man page for resolv.conf) lists ndots: as the only option for resolv.conf.&lt;BR /&gt;&lt;BR /&gt;However, if you have the minimum patch PHCO_20098 (10.20) or PHCO_22076 (11.0) (or successor patches) then retrans: and retry: are available. Alternatively, the environment variables RES_RETRANS and RES_RETRY can be set for the same results.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, all versions of 10.20, 11.0 and 11i do not have updated man pages yet.&lt;BR /&gt;&lt;BR /&gt;However, I would seriously consider using nsswitch.conf rather than shorter resolv.conf timeouts. IP/hostname lookups occur much more often than you would expect (ie, once for every filename on a network backup system). By configuring files, then DNS, name resolution for important addresses is virtually instantaneous, requires no LAN traffic, and survives unreliable DNS servers.</description>
      <pubDate>Mon, 11 Feb 2002 03:42:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/resolv-conf-defaults/m-p/2662059#M48622</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-02-11T03:42:07Z</dc:date>
    </item>
  </channel>
</rss>

