<?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: SG and resolver. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655384#M699331</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;We have a single node cluster for the exact reasons that Alex explained and it had been very useful. My question was in line of..what would happen if the primary dns fails and it had to go thru the secondary dns..what would be the impact in my scenario?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Brian.</description>
    <pubDate>Sun, 23 Oct 2005 08:41:10 GMT</pubDate>
    <dc:creator>brian_31</dc:creator>
    <dc:date>2005-10-23T08:41:10Z</dc:date>
    <item>
      <title>SG and resolver.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655381#M699328</link>
      <description>Team:&lt;BR /&gt;&lt;BR /&gt;We have a single node cluster (no failover) running on 11.0 currently our nsswitch.conf is as follows..&lt;BR /&gt;hosts: dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] files&lt;BR /&gt;&lt;BR /&gt;In our resolv.conf we have three dns servers defined. We hardly have a dns outage even if the primary fails the secondary will be up. And then we have a third one too...&lt;BR /&gt;&lt;BR /&gt;Looking at various posts here i am convinced that i shd have files first in nsswitch. Given my scenario could you pl. tell me what the negative points are in my set up (nsswitch ..dns first as above) in case of primary DNS failure given a MCSG env?&lt;BR /&gt;&lt;BR /&gt;Best Regards&lt;BR /&gt;&lt;BR /&gt;Brian.</description>
      <pubDate>Sat, 22 Oct 2005 14:20:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655381#M699328</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2005-10-22T14:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: SG and resolver.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655382#M699329</link>
      <description>I don't understand why you have a single node cluster?&lt;BR /&gt;&lt;BR /&gt;We set ours like this:&lt;BR /&gt;&lt;BR /&gt;hosts: files [NOTFOUND=continue] dns&lt;BR /&gt;&lt;BR /&gt;The logic is that a lot of the references in the cluster (we have multi-node clusters) are between cluster members, so we put all of the cluster members and the package floating IPs, etc, in the /etc/hosts, and those references are answered immediately and dont' have to wait for the DNS server.  &lt;BR /&gt;&lt;BR /&gt;We have a DNS server that has "High Availablity" somehow, I dont' know how - the DNS Team maintains it on a Windows Server.</description>
      <pubDate>Sat, 22 Oct 2005 15:11:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655382#M699329</guid>
      <dc:creator>Stuart Abramson</dc:creator>
      <dc:date>2005-10-22T15:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: SG and resolver.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655383#M699330</link>
      <description>You don't want your cluster fail because of DNS server problems. Cluster should be a closed unit that should not be ( or as little as possible) dependent on the environment.&lt;BR /&gt;&lt;BR /&gt;Since the nodes are written in /etc/hosts or cmclnodes files anyway, it's better to have name resolution to be files and then DNS. Ofcourse these are recomendations, you don't have to follow them, but it's just the right way to setup the cluster.&lt;BR /&gt;&lt;BR /&gt;About the previous reply, why to have s ingle node cluster. It's very comfortable to have programs as packages, when you can bring the whole logic package, for example db+webserver, with one command in the order you choose and let someting monitor both things and take care when something falls, like restart the whole thing. It's a common usage of SG.&lt;BR /&gt;&lt;BR /&gt;Alex.</description>
      <pubDate>Sat, 22 Oct 2005 16:17:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655383#M699330</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-10-22T16:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: SG and resolver.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655384#M699331</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;We have a single node cluster for the exact reasons that Alex explained and it had been very useful. My question was in line of..what would happen if the primary dns fails and it had to go thru the secondary dns..what would be the impact in my scenario?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Brian.</description>
      <pubDate>Sun, 23 Oct 2005 08:41:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655384#M699331</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2005-10-23T08:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: SG and resolver.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655385#M699332</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In addition to Alex's message above:&lt;BR /&gt;&lt;BR /&gt;The sequence &lt;BR /&gt;files [notfound=continue] dns &lt;BR /&gt;should be used, especially if you put often used hostnames into /etc/hosts (e.g. nodes hostnames)&lt;BR /&gt;The problem with &lt;BR /&gt;dns [notfound=continue] files &lt;BR /&gt;sequence is the follwing: if primary server does not answer, the next server will be asked in about a minute, so each name resolution request will take about one minute.Some applications will not work in these conditions.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Sun, 23 Oct 2005 10:31:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655385#M699332</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2005-10-23T10:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: SG and resolver.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655386#M699333</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Having hostname lookups done by DNS first could delay operations in your cluster.&lt;BR /&gt;In worst case it could timeout and stall it.&lt;BR /&gt;&lt;BR /&gt;Files before dns is best.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bob</description>
      <pubDate>Sun, 23 Oct 2005 12:38:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655386#M699333</guid>
      <dc:creator>B. Hulst</dc:creator>
      <dc:date>2005-10-23T12:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: SG and resolver.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655387#M699334</link>
      <description>Thanks. Is there any way i can test the time it takes in case of dns failure? I want to find out the dns timeout before it gets to files.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Mon, 24 Oct 2005 10:19:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655387#M699334</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2005-10-24T10:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: SG and resolver.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655388#M699335</link>
      <description>Hi Brian,&lt;BR /&gt;&lt;BR /&gt; If you have a non-responsive/down DNS server configured in your /etc/resolv.conf the resolver will retry 4 times after its initial request then give and error similar to this:&lt;BR /&gt;&lt;BR /&gt;"Cant find server name for address X.X.X.X: No response from server"&lt;BR /&gt;&lt;BR /&gt;Then it will move on to the next nameserver in your resolv.conf file, if that server is not available it repeats the retry, times out and goes to the next server. &lt;BR /&gt;&lt;BR /&gt;This can happen up to 3 times, depending on the # of nameserver entries you have in your /etc/resolv.conf. &lt;BR /&gt;&lt;BR /&gt;The timeouts are doubled each time a retry is attempted.&lt;BR /&gt;&lt;BR /&gt;timeout 1 ( 5 seconds)&lt;BR /&gt;timeout 2 (10 seconds)&lt;BR /&gt;timeout 3 (20 seconds)&lt;BR /&gt;timeout 4 (40 seconds)&lt;BR /&gt;&lt;BR /&gt;So a total of 75 seconds for each nameserver that may be unavailable. &lt;BR /&gt;&lt;BR /&gt;If you have 3 thats 225 seconds 3.75 minutes..which is forever. &lt;BR /&gt;&lt;BR /&gt;You can adjust these timeouts in the /etc/resolv.conf file with the retry and retrans options. See man page for resolv.conf. &lt;BR /&gt;&lt;BR /&gt;ex.&lt;BR /&gt;&lt;BR /&gt;For example, to have a system wait 1 second for a reply and retry 1 time after&lt;BR /&gt;a timeout:&lt;BR /&gt;&lt;BR /&gt;  retrans 1000&lt;BR /&gt;  retry   1&lt;BR /&gt;&lt;BR /&gt;/etc/resolv.conf&lt;BR /&gt;domain hp.com&lt;BR /&gt;nameserver 15.152.153.154&lt;BR /&gt;nameserver 15.155.156.157&lt;BR /&gt;nameserver 15.158.159.160&lt;BR /&gt;retry 1&lt;BR /&gt;retrans 1000&lt;BR /&gt;&lt;BR /&gt;So depending on how many dns servers you have in /etc/resolv.conf and how your retrans and retries are set (default or modified) determines how long it will take to go from DNS to /etc/hosts files via the /etc/nsswitch.conf file. &lt;BR /&gt;&lt;BR /&gt;Thats why its a good practice to put files first in /etc/nsswitch.conf and entries in your /etc/hosts files for your more critical systems so that in the event of a DNS issue you wont experience delays. &lt;BR /&gt;&lt;BR /&gt;Hope that helps</description>
      <pubDate>Wed, 26 Oct 2005 08:01:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655388#M699335</guid>
      <dc:creator>Todd Whitcher</dc:creator>
      <dc:date>2005-10-26T08:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: SG and resolver.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655389#M699336</link>
      <description>I agree that all the nodes in the cluster should be in /etc/hosts and files should be first in nsswitch.conf. &lt;BR /&gt;&lt;BR /&gt;The DNS timeout for a down nameserver is controlled by the retrans and retry params in /etc/resolv.conf. See the man page for resolv.conf. &lt;BR /&gt;&lt;BR /&gt;It requires later libc patch for 11.0, is built in to later HP-UX versions. &lt;BR /&gt;&lt;BR /&gt;The timeout should be ~= retrans in milliseconds * retry. &lt;BR /&gt;&lt;BR /&gt;Test the timeout by inserting a non-existent IP on your subnet first in resolv.conf. Test by looking up a hostname that is not in files, but is in your DNS server(s). For example :&lt;BR /&gt;&lt;BR /&gt;"timex nsquery hosts hostname"&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;"ping hostname"&lt;BR /&gt;&lt;BR /&gt;The ping won't start until after the lookup completes. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Oct 2005 08:02:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655389#M699336</guid>
      <dc:creator>Jim Keeble</dc:creator>
      <dc:date>2005-10-26T08:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: SG and resolver.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655390#M699337</link>
      <description>Todd is correct - I do the same.&lt;BR /&gt;&lt;BR /&gt;For ServiceGuard, I set the following in nsswitch.conf:&lt;BR /&gt;&lt;BR /&gt;hosts:        files [NOTFOUND=CONTINUE] dns&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And for resolv.conf:&lt;BR /&gt;&lt;BR /&gt;retrans 2500&lt;BR /&gt;retry 2&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Oct 2005 08:41:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sg-and-resolver/m-p/3655390#M699337</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-10-26T08:41:59Z</dc:date>
    </item>
  </channel>
</rss>

