<?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 forward lookup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-forward-lookup/m-p/4456112#M359432</link>
    <description>Thank you for quick reply.&lt;BR /&gt;&lt;BR /&gt;We found out the limitation of the character searching of BIND 9.3.2. The maximum character searching is 250 characters beyond 250 characters it will drop. That is the reason the new domains added when we tried to resolve the hostname to IP address. It returned the hostname to IP address from the host file. It works only if we tried to resolve FQDN it will resolve hostname to IP address from the DNS server. We have total 17 domains in the resolv.conf. The 1st 6 domains, we do nslookup only hostname (i.e host01). It will resolve the IP address from the DNS server:&lt;BR /&gt;ï § Example:&lt;BR /&gt;â ¢ For the 1st 6 domain in the resolv.conf&lt;BR /&gt;nslookup by hostname:  &lt;BR /&gt;#nslookup&lt;BR /&gt;Default name server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;&amp;gt;server1&lt;BR /&gt;Name Server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;Trying DNS&lt;BR /&gt;Name: server1.exampleB.com &lt;BR /&gt;Address: 135.18.143.54&lt;BR /&gt;&lt;BR /&gt;â ¢ For the rest domains in the resolv.conf  (7th domain to 17th domain)&lt;BR /&gt;nslookup by FQDN:  &lt;BR /&gt;#nslookup&lt;BR /&gt;Default name server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;&amp;gt;host01.exampleM.com   &lt;BR /&gt;Name Server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;Trying DNS&lt;BR /&gt;Address: host01.exampleM.com   &lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;â ¢ If we tried to resolve hostname to IP address(7th domain to 17th domain), it will resolve IP address from the host file but not on DNS server.&lt;BR /&gt;&lt;BR /&gt;#nslookup&lt;BR /&gt;Default name server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;&amp;gt;host01 &lt;BR /&gt;Name Server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;Trying DNS&lt;BR /&gt;Looking up FILES&lt;BR /&gt;Address: host01.exampleM.com   &lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;Alias: host01&lt;BR /&gt;</description>
    <pubDate>Thu, 09 Jul 2009 20:04:24 GMT</pubDate>
    <dc:creator>KIM D NGUYEN</dc:creator>
    <dc:date>2009-07-09T20:04:24Z</dc:date>
    <item>
      <title>DNS forward lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-forward-lookup/m-p/4456110#M359430</link>
      <description>Hello there&lt;BR /&gt;&lt;BR /&gt;I am running in to a problem with DNS forward lookup. The reverse lookup is working fine. It resolves IP address to hostname but the forward lookup it resolves hostname to IP address from the hosts file. Here is the situation.&lt;BR /&gt;&lt;BR /&gt;We have a cluster of servers: server1, server2, server3, server4. DNS server is running on server4. Originally, we have 6 domains such as:&lt;BR /&gt;&lt;BR /&gt;ExampleA.com&lt;BR /&gt;ExampleB.com&lt;BR /&gt;ExampleC.com&lt;BR /&gt;ExampleD.com&lt;BR /&gt;ExampleE.com&lt;BR /&gt;ExampleF.com&lt;BR /&gt;&lt;BR /&gt;Now we added more domains:&lt;BR /&gt;&lt;BR /&gt;ExampleG.com&lt;BR /&gt;ExampleH.com&lt;BR /&gt;ExampleK.com&lt;BR /&gt;ExampleL.com&lt;BR /&gt;ExampleM.com&lt;BR /&gt;ExampleN.com&lt;BR /&gt;&lt;BR /&gt;We also added new hosts to the existing domain (ExampleA.com, ExampleB.com, ExampleC.com, ExampleD.com, ExampleE.com, and ExampleF.com). DNS lookup is working fine both forward and reverse lookup for the existing domain. It doesn’t have any problems but when I performed nslookup for the new host on the new domain below:&lt;BR /&gt;&lt;BR /&gt;ExampleG.com, &lt;BR /&gt;ExampleH.com&lt;BR /&gt;ExampleK.com&lt;BR /&gt;ExampleL.com&lt;BR /&gt;ExampleM.com&lt;BR /&gt;ExampleN.com&lt;BR /&gt;&lt;BR /&gt;I encountered the problem. DNS lookup resolves IP address to hostname but doesn’t resolve hostname to IP address. It resolves IP address from the host file. &lt;BR /&gt;&lt;BR /&gt;*** Here is the result of forward lookup****&lt;BR /&gt;#nslookup&lt;BR /&gt;Default name server: server4.ExampleA.com&lt;BR /&gt;Address: 135.10.143.54&lt;BR /&gt;&amp;gt;host01&lt;BR /&gt;Name Server: server4.ExampleA.com&lt;BR /&gt;Address: 135.10.143.54&lt;BR /&gt;Trying DNS&lt;BR /&gt;Looking up FILES&lt;BR /&gt;Name: host01.ExampleG.com&lt;BR /&gt;Address: 135.10.240.69&lt;BR /&gt;Alliases: host01&lt;BR /&gt;&lt;BR /&gt;*** Here is the result of reverse lookup (It works perfect)****&lt;BR /&gt;&amp;gt;135.10.240.69&lt;BR /&gt;Name Server: server4.ExampleA.com&lt;BR /&gt;Address: 135.10.143.54&lt;BR /&gt;&lt;BR /&gt;Trying DNS&lt;BR /&gt;Name: host01.ExampleG.com&lt;BR /&gt;Address: 135.10.240.69&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here are the files in &lt;BR /&gt;server1:&lt;BR /&gt;/etc/nsswith.conf &lt;BR /&gt;/etc/resolve.conf&lt;BR /&gt;/etc/hosts&lt;BR /&gt;&lt;BR /&gt;server2:&lt;BR /&gt;/etc/nsswith.conf &lt;BR /&gt;/etc/resolve.conf&lt;BR /&gt;/etc/hosts&lt;BR /&gt;&lt;BR /&gt;server3:&lt;BR /&gt;/etc/nsswith.conf &lt;BR /&gt;/etc/resolve.conf&lt;BR /&gt;/etc/hosts&lt;BR /&gt;&lt;BR /&gt; server4:&lt;BR /&gt;/etc/nsswith.conf &lt;BR /&gt;/etc/resolve.conf&lt;BR /&gt;/etc/hosts&lt;BR /&gt;&lt;BR /&gt;/tmp/param&lt;BR /&gt;&lt;BR /&gt;Here is the nsswitch.conf&lt;BR /&gt;#&lt;BR /&gt;# /etc/nsswitch.nis:&lt;BR /&gt;#&lt;BR /&gt;# @(#)B.11.11_LR&lt;BR /&gt;#&lt;BR /&gt;# An example file that could be copied over to /etc/nsswitch.conf; it&lt;BR /&gt;# uses NIS (YP) in conjunction with files.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;passwd:       files ldap&lt;BR /&gt;group:        files ldap&lt;BR /&gt;hosts:        dns files [NOTFOUND=Continue] &lt;BR /&gt;networks:     nis [NOTFOUND=return] files&lt;BR /&gt;protocols:    nis [NOTFOUND=return] files&lt;BR /&gt;rpc:          nis [NOTFOUND=return] files&lt;BR /&gt;publickey:    nis [NOTFOUND=return] files&lt;BR /&gt;netgroup:     nis [NOTFOUND=return] files&lt;BR /&gt;automount:    files nis&lt;BR /&gt;aliases:      files nis&lt;BR /&gt;services:     files nis&lt;BR /&gt;&lt;BR /&gt;Here is the resolv.conf&lt;BR /&gt;domain ExampleA.com&lt;BR /&gt;search ExampleA.com ExampleB.com ExampleC.com ExampleD.com ExampleE.com ExampleF.com ExampleG.com ExampleH.com ExampleK.com ExampleL.com ExampleM.com ExampleN.com&lt;BR /&gt;&lt;BR /&gt;nameserver 135.10.143.54&lt;BR /&gt;nameserver 135.10.129.54&lt;BR /&gt;&lt;BR /&gt;Here is param file in /tmp/param&lt;BR /&gt;&lt;BR /&gt;-d ExampleA.com&lt;BR /&gt;-d ExampleB.com&lt;BR /&gt;-d ExampleC.com&lt;BR /&gt;-d ExampleD.com&lt;BR /&gt;-d ExampleE.com&lt;BR /&gt;-d ExampleF.com&lt;BR /&gt;-d ExampleG.com&lt;BR /&gt;-d ExampleH.com&lt;BR /&gt;-d ExampleK.com&lt;BR /&gt;-d ExampleL.com&lt;BR /&gt;-d ExampleM.com&lt;BR /&gt;-d ExampleN.com&lt;BR /&gt;-n 135.10.129&lt;BR /&gt;-n 135.10.135&lt;BR /&gt;-n 135.10.143&lt;BR /&gt;-n 135.10.192&lt;BR /&gt;-n 135.10.193&lt;BR /&gt;-n 135.10.194&lt;BR /&gt;-n 135.10.200&lt;BR /&gt;-n 135.10.201&lt;BR /&gt;-n 135.10.205&lt;BR /&gt;-n 135.10.206&lt;BR /&gt;-n 135.10.210&lt;BR /&gt;-n 135.10.250&lt;BR /&gt;-H /etc/hosts&lt;BR /&gt;&lt;BR /&gt;Would you please help? Thank you very much.&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt;Kim&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Jul 2009 22:06:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-forward-lookup/m-p/4456110#M359430</guid>
      <dc:creator>KIM D NGUYEN</dc:creator>
      <dc:date>2009-07-08T22:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: DNS forward lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-forward-lookup/m-p/4456111#M359431</link>
      <description>In your forward nslookup example you typed in "host01" as a simple name (not FQDN). So it inherited the default domain of the host where you run the nslookup command. Based on the resolv.conf file it is ExampleA.com. So the host01 is treated as host01.ExampleA.com&lt;BR /&gt;&lt;BR /&gt;What do you expect the result to be? &lt;BR /&gt;&lt;BR /&gt;The resolv.conf assumes a ExampleA.com so is the host01 listed in the map for that domain?&lt;BR /&gt;&lt;BR /&gt;Which domains is host01 listed in?&lt;BR /&gt;&lt;BR /&gt;If all the resolv.conf files have "domain ExampleA.com" what is the point of all the other domains?</description>
      <pubDate>Thu, 09 Jul 2009 01:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-forward-lookup/m-p/4456111#M359431</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-07-09T01:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: DNS forward lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dns-forward-lookup/m-p/4456112#M359432</link>
      <description>Thank you for quick reply.&lt;BR /&gt;&lt;BR /&gt;We found out the limitation of the character searching of BIND 9.3.2. The maximum character searching is 250 characters beyond 250 characters it will drop. That is the reason the new domains added when we tried to resolve the hostname to IP address. It returned the hostname to IP address from the host file. It works only if we tried to resolve FQDN it will resolve hostname to IP address from the DNS server. We have total 17 domains in the resolv.conf. The 1st 6 domains, we do nslookup only hostname (i.e host01). It will resolve the IP address from the DNS server:&lt;BR /&gt;ï § Example:&lt;BR /&gt;â ¢ For the 1st 6 domain in the resolv.conf&lt;BR /&gt;nslookup by hostname:  &lt;BR /&gt;#nslookup&lt;BR /&gt;Default name server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;&amp;gt;server1&lt;BR /&gt;Name Server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;Trying DNS&lt;BR /&gt;Name: server1.exampleB.com &lt;BR /&gt;Address: 135.18.143.54&lt;BR /&gt;&lt;BR /&gt;â ¢ For the rest domains in the resolv.conf  (7th domain to 17th domain)&lt;BR /&gt;nslookup by FQDN:  &lt;BR /&gt;#nslookup&lt;BR /&gt;Default name server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;&amp;gt;host01.exampleM.com   &lt;BR /&gt;Name Server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;Trying DNS&lt;BR /&gt;Address: host01.exampleM.com   &lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;â ¢ If we tried to resolve hostname to IP address(7th domain to 17th domain), it will resolve IP address from the host file but not on DNS server.&lt;BR /&gt;&lt;BR /&gt;#nslookup&lt;BR /&gt;Default name server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;&amp;gt;host01 &lt;BR /&gt;Name Server: server4.exampleA.com&lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;Trying DNS&lt;BR /&gt;Looking up FILES&lt;BR /&gt;Address: host01.exampleM.com   &lt;BR /&gt;Address: 135.18.129.54&lt;BR /&gt;Alias: host01&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Jul 2009 20:04:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dns-forward-lookup/m-p/4456112#M359432</guid>
      <dc:creator>KIM D NGUYEN</dc:creator>
      <dc:date>2009-07-09T20:04:24Z</dc:date>
    </item>
  </channel>
</rss>

