<?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: DNS Cache in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784225#M263702</link>
    <description>As far as caching goes - you could set up the Unix server to be a cacheing only DNS server.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90775/ch02s06.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90775/ch02s06.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
    <pubDate>Mon, 08 May 2006 09:44:21 GMT</pubDate>
    <dc:creator>Geoff Wild</dc:creator>
    <dc:date>2006-05-08T09:44:21Z</dc:date>
    <item>
      <title>DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784223#M263700</link>
      <description>Hello all,&lt;BR /&gt;&lt;BR /&gt;Our DNS server is a W2K3 box. We recently moved all the printers entries from HP-UX /etc/hosts file to our DNS server to keep it under one single place. When the W2K3 box failed to answer or reboot, if a user is printing from the HP-UX box, then UNIX can't make the printer name resolution and disable the printer. I have set a second DNS server in /etc/resolve.conf but seems like it never look to the second DNS server but disable the printer. My question is: Is there any kind of DNS cache I can set on the UNIX side and if yes, HOW? Any other suggestion?&lt;BR /&gt;&lt;BR /&gt;Tks.</description>
      <pubDate>Mon, 08 May 2006 08:36:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784223#M263700</guid>
      <dc:creator>Stéphane Gauthier</dc:creator>
      <dc:date>2006-05-08T08:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784224#M263701</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;/etc/nsswitch.conf&lt;BR /&gt;&lt;BR /&gt;hosts dns,files&lt;BR /&gt;&lt;BR /&gt;files becomes the failover.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 08 May 2006 09:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784224#M263701</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2006-05-08T09:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784225#M263702</link>
      <description>As far as caching goes - you could set up the Unix server to be a cacheing only DNS server.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90775/ch02s06.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90775/ch02s06.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Mon, 08 May 2006 09:44:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784225#M263702</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-05-08T09:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784226#M263703</link>
      <description>If you are stuck with an unreliable DNS server, just change the nsswitch.conf file to:&lt;BR /&gt; &lt;BR /&gt;hosts: files dns&lt;BR /&gt; &lt;BR /&gt;What this does is to look in /etc/hosts first (which is a good idea because you control it). Put all your printer IP addresses (or other servers handling your print requests) as well as other important hostnames and IPs into this file and now the DNS server is only consulted for unimportant addresses.&lt;BR /&gt; &lt;BR /&gt;Note that a DNS server is actually a major component in corporate security system so it may be located on the wrong machine.</description>
      <pubDate>Mon, 08 May 2006 16:32:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784226#M263703</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-05-08T16:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784227#M263704</link>
      <description>So what I can understand is that there is no DNS cache on HP-UX. If the DNS server fails, HP-UX does not have a cache to look in so it can resolve the DNS name.&lt;BR /&gt;&lt;BR /&gt;Is this correct? &lt;BR /&gt;&lt;BR /&gt;The thing is that we want to keep the /etc/hosts files empty as possible and use the DNS server because Windows and Unix uses these entries.</description>
      <pubDate>Tue, 09 May 2006 10:23:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784227#M263704</guid>
      <dc:creator>Stéphane Gauthier</dc:creator>
      <dc:date>2006-05-09T10:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784228#M263705</link>
      <description>&amp;gt; So what I can understand is that there is no DNS cache on HP-UX. If the DNS server fails, HP-UX does not have a cache to look in so it can resolve the DNS name.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Is this correct? &lt;BR /&gt;&lt;BR /&gt;Correct. Either the DNS server works 100% of the time, or you fall back on /etc/hosts. The problem with failed DNS servers is that they cause VERY BIG delays (20 secs) to move to the second or 3rd server for EVERY request. That's the reason for putting the critical systems (and printers) into /etc/hosts. Once you have a dependable DNS system, you can reduce /etc/hosts.&lt;BR /&gt; &lt;BR /&gt;Now you could try setting up a DNS caching server on your HP-UX box but it's primary purpose is for workload sharing.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The thing is that we want to keep the /etc/hosts files empty as possible and use the DNS server because Windows and Unix uses these entries.&lt;BR /&gt; &lt;BR /&gt;This only works if DNS is the most reliable and stable system in your network (no reboots, mirrored disks, redundant network cards, etc). Having all the addresses in one box is good but it is catastrophic to all systems when it fails.</description>
      <pubDate>Tue, 09 May 2006 12:40:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784228#M263705</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-05-09T12:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784229#M263706</link>
      <description>Ok, so here is what I am thinking:&lt;BR /&gt;&lt;BR /&gt;1. Is there a way to reduce that 20 seconds time so HP-UX looks on the secondary DNS as soon as it can't contact the first one?&lt;BR /&gt;&lt;BR /&gt;2. Is there a configurable parameter in HP-UX to expand the time for PH-UX to disable a printer before it get disable?&lt;BR /&gt;&lt;BR /&gt;3. Would BIND as secondary DNS be a good solution?&lt;BR /&gt;&lt;BR /&gt;Tks</description>
      <pubDate>Tue, 09 May 2006 12:58:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784229#M263706</guid>
      <dc:creator>Stéphane Gauthier</dc:creator>
      <dc:date>2006-05-09T12:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784230#M263707</link>
      <description>1) Yes - man resolv.conf &amp;amp; look at the "retry" (hint set it lower than the default 5) AND "retrans" (hint set it lower than the default 5000 milliseconds as well - now do you see the 20 seconds?)&lt;BR /&gt;&lt;BR /&gt;2) Not sure&lt;BR /&gt;&lt;BR /&gt;3) DNS is essentially BIND&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 09 May 2006 13:19:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784230#M263707</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2006-05-09T13:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784231#M263708</link>
      <description>Oops - sorry.&lt;BR /&gt;The default value of retry is 4&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 09 May 2006 13:20:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784231#M263708</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2006-05-09T13:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784232#M263709</link>
      <description>Yes, You could set up a secondary DNS on a UNIX server, then when the windoze box dies, it would resolve to this server.&lt;BR /&gt;Just add a line to /etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;nameserver &amp;lt; IPaddress &amp;gt;&lt;BR /&gt;after the existing one.&lt;BR /&gt;&lt;BR /&gt;I always set up a secondary DNS but I have never done it having the primary on a windoze box, when both are on UNIX the secondary will be updated automatically from the primary every X minutes&lt;BR /&gt;X is configurable.&lt;BR /&gt;&lt;BR /&gt;I bet the reason why your DNS is on a windoze box is that the people maintaining it don't know how to edit a file using vi :-)&lt;BR /&gt;</description>
      <pubDate>Tue, 09 May 2006 13:33:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784232#M263709</guid>
      <dc:creator>Christian Tremblay</dc:creator>
      <dc:date>2006-05-09T13:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784233#M263710</link>
      <description>Along what Jeff says:&lt;BR /&gt;&lt;BR /&gt;On HP-UX, you can set the following in resolv.conf:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;retrans 1000&lt;BR /&gt;retry 2&lt;BR /&gt;&lt;BR /&gt;retrans&lt;BR /&gt;&lt;BR /&gt;Retransmission timeout. It is interpreted during&lt;BR /&gt;the res_init() (see resolver(3N)) call. It has&lt;BR /&gt;higher precedence than setting it through the&lt;BR /&gt;set_resfeild() (see resolver(3N)) API and lower&lt;BR /&gt;precedence than setting it through the RES_RETRANS&lt;BR /&gt;(see resolver(3N)) environment variable. Whenever&lt;BR /&gt;an invalid value is specified for retrans, a&lt;BR /&gt;message is flagged in syslog. The default value&lt;BR /&gt;is 5000 milliseconds.&lt;BR /&gt;&lt;BR /&gt;retry&lt;BR /&gt;&lt;BR /&gt;Number of retries. This is interpreted during the&lt;BR /&gt;res_init() (see resolver(3N)) call. It has higher&lt;BR /&gt;precedence than setting it through the&lt;BR /&gt;set_resfeild() (see resolver(3N)) API and lower&lt;BR /&gt;precedence than setting it through the RES_RETRY&lt;BR /&gt;(see resolver(3N)) environment variable. Whenever&lt;BR /&gt;an invalid value is specified for retry, a message&lt;BR /&gt;is flagged in syslog. The default value is 4.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That will speed up any delays going from 1 nameserver to another - unfortunately, Windows does a better job - if it can't get to the first one, it goes to the second - if successful, it's next query will automatically go to the second. In unix, this is not the case - we will always try the nameservers in order based on resolv.conf.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 09 May 2006 13:48:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784233#M263710</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-05-09T13:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: DNS Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784234#M263711</link>
      <description>Geoff, that HP document sucks (actually most of the documentation I have ever seen on DNS Caching sucks and most of it is totally inaccurate.) It does not resolve localhost - which means you will be resolving it at the local dns servers and it the extreme case at the internet root servers. &lt;BR /&gt;&lt;BR /&gt;Stephane, have a look at this link&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=840826" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=840826&lt;/A&gt;&lt;BR /&gt;and look for my responses.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry d brown jr</description>
      <pubDate>Tue, 09 May 2006 14:08:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-cache/m-p/3784234#M263711</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2006-05-09T14:08:45Z</dc:date>
    </item>
  </channel>
</rss>

