<?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: Bind for loadsharing and cache mechanisms in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/bind-for-loadsharing-and-cache-mechanisms/m-p/4179714#M322241</link>
    <description>- Is there a way to configure RP4440 with Bind as cache DNS ??&lt;BR /&gt;&lt;BR /&gt;Certainly.&lt;BR /&gt;See this example in BIND 9.3 documentation:&lt;BR /&gt;&lt;A href="http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547334" target="_blank"&gt;http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547334&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;- When a process/instance will need to talk to the linux machines...&lt;BR /&gt;&lt;BR /&gt;The more detailed description of the flow is:&lt;BR /&gt;&lt;BR /&gt;Process =&amp;gt; gethostbyname =&amp;gt; /etc/nsswitch.conf (hosts: line)&lt;BR /&gt;then in the order specified by the hosts line in nsswitch.conf:&lt;BR /&gt;&lt;BR /&gt;* if "dns" is specified:&lt;BR /&gt;/etc/resolv.conf =&amp;gt; first DNS server listed in there&lt;BR /&gt;** if it does not answer, then the second DNS server listed in resolv.conf etc...&lt;BR /&gt;&lt;BR /&gt;* if "hosts" is specified, look up in /etc/hosts&lt;BR /&gt;&lt;BR /&gt;To get the processes on your rp4440s use the local DNS cache offered by BIND, specify "nameserver 127.0.0.1" as your first nameserver in /etc/resolv.conf. Make sure that /etc/nsswitch.conf allows the use of DNS.&lt;BR /&gt;&lt;BR /&gt;- Will the gethostbyname use the first IP or is it random?&lt;BR /&gt;&lt;BR /&gt;The gethostbyname() function returns all the addresses at once. Usually the applications will just use the first address returned. This is why the DNS server (BIND) will randomize the order of the A records in the answer, unless configured to do otherwise:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547372" target="_blank"&gt;http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547372&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.isc.org/sw/bind/arm93/Bv9ARM.ch06.html#rrset_ordering" target="_blank"&gt;http://www.isc.org/sw/bind/arm93/Bv9ARM.ch06.html#rrset_ordering&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Sat, 26 Apr 2008 07:13:15 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2008-04-26T07:13:15Z</dc:date>
    <item>
      <title>Bind for loadsharing and cache mechanisms</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bind-for-loadsharing-and-cache-mechanisms/m-p/4179713#M322240</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;1. We have 2 x RP4440 with HP-UX 11.1 and Bind 9.3&lt;BR /&gt;&lt;BR /&gt;2. These two servers run 4 applications via forked process (many tens instance).&lt;BR /&gt;&lt;BR /&gt;3. These two servers needs to communicate with a linux cluster 10 machines each one with one IP @ (Load sharing).&lt;BR /&gt;&lt;BR /&gt;4. The 10 Linux machines are grouped under an external authoritative DNS server DNS1 as one name (multiple A records): prodhost.company.com&lt;BR /&gt;&lt;BR /&gt;prodhost    IN A 10.10.10.1&lt;BR /&gt;            IN A 10.10.10.2&lt;BR /&gt;..&lt;BR /&gt;            IN A 10.10.10.10&lt;BR /&gt;      &lt;BR /&gt;&lt;BR /&gt;So our RP4440 triggers the DNS1, get the 10 IP @ in different orders (configured on DNS1) and start communication.&lt;BR /&gt;&lt;BR /&gt;My questions are:&lt;BR /&gt;&lt;BR /&gt;- Is there a way to configure RP4440 with Bind as cache DNS ?? if yes how ?&lt;BR /&gt;&lt;BR /&gt;If we can do it&lt;BR /&gt;&lt;BR /&gt;- When a process/instance will need to talk to the linux machines the flow is:&lt;BR /&gt;&lt;BR /&gt;Process =&amp;gt; gethostbyname =&amp;gt; Cache ?&lt;BR /&gt;&lt;BR /&gt;Will the gethostbyname use the first IP or is random ??&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Apr 2008 17:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bind-for-loadsharing-and-cache-mechanisms/m-p/4179713#M322240</guid>
      <dc:creator>Mark2010_1</dc:creator>
      <dc:date>2008-04-14T17:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Bind for loadsharing and cache mechanisms</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/bind-for-loadsharing-and-cache-mechanisms/m-p/4179714#M322241</link>
      <description>- Is there a way to configure RP4440 with Bind as cache DNS ??&lt;BR /&gt;&lt;BR /&gt;Certainly.&lt;BR /&gt;See this example in BIND 9.3 documentation:&lt;BR /&gt;&lt;A href="http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547334" target="_blank"&gt;http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547334&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;- When a process/instance will need to talk to the linux machines...&lt;BR /&gt;&lt;BR /&gt;The more detailed description of the flow is:&lt;BR /&gt;&lt;BR /&gt;Process =&amp;gt; gethostbyname =&amp;gt; /etc/nsswitch.conf (hosts: line)&lt;BR /&gt;then in the order specified by the hosts line in nsswitch.conf:&lt;BR /&gt;&lt;BR /&gt;* if "dns" is specified:&lt;BR /&gt;/etc/resolv.conf =&amp;gt; first DNS server listed in there&lt;BR /&gt;** if it does not answer, then the second DNS server listed in resolv.conf etc...&lt;BR /&gt;&lt;BR /&gt;* if "hosts" is specified, look up in /etc/hosts&lt;BR /&gt;&lt;BR /&gt;To get the processes on your rp4440s use the local DNS cache offered by BIND, specify "nameserver 127.0.0.1" as your first nameserver in /etc/resolv.conf. Make sure that /etc/nsswitch.conf allows the use of DNS.&lt;BR /&gt;&lt;BR /&gt;- Will the gethostbyname use the first IP or is it random?&lt;BR /&gt;&lt;BR /&gt;The gethostbyname() function returns all the addresses at once. Usually the applications will just use the first address returned. This is why the DNS server (BIND) will randomize the order of the A records in the answer, unless configured to do otherwise:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547372" target="_blank"&gt;http://www.isc.org/sw/bind/arm93/Bv9ARM.ch03.html#id2547372&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.isc.org/sw/bind/arm93/Bv9ARM.ch06.html#rrset_ordering" target="_blank"&gt;http://www.isc.org/sw/bind/arm93/Bv9ARM.ch06.html#rrset_ordering&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Sat, 26 Apr 2008 07:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/bind-for-loadsharing-and-cache-mechanisms/m-p/4179714#M322241</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2008-04-26T07:13:15Z</dc:date>
    </item>
  </channel>
</rss>

