<?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: nslookup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nslookup/m-p/5263000#M472369</link>
    <description>If no /etc/nsswitch.conf is present on the system, then there are default policies that are used by the system.  According to the nslookup man page:&lt;BR /&gt;&lt;BR /&gt;The library functions contain compiled-in default entries that are used if the appropriate entry in nsswitch.conf is absent or&lt;BR /&gt;syntactically incorrect. The entries are as follows:&lt;BR /&gt;[...]&lt;BR /&gt;hosts:          dns [NOTFOUND=return] nis [NOTFOUND=return] files&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;So, that explains part of the behavior.  &lt;BR /&gt;&lt;BR /&gt;The other part of the equation is the /etc/resolv.conf file.  The DNS servers that are used to look up host info are specified there.&lt;BR /&gt;&lt;BR /&gt;The DNS server being in the /etc/hosts file will not accomplish much.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;One server has no nsswitch.conf, no DNS &lt;BR /&gt;&amp;gt;&amp;gt;entry in /etc/hosts, but for "sys" group &lt;BR /&gt;&amp;gt;&amp;gt;users, nslookup works fine.&lt;BR /&gt;&lt;BR /&gt;I suspect in this case that you have an /etc/resolv.conf file and that the permissions allow reading of the file by the owner and group, which are probably root and sys respectively (the defaults).&lt;BR /&gt;&lt;BR /&gt;To resolv this, you need to make the file world READable (you don't need world write or world execute).&lt;BR /&gt;&lt;BR /&gt;chmod o+r /etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 16 Nov 2010 20:57:20 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2010-11-16T20:57:20Z</dc:date>
    <item>
      <title>nslookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nslookup/m-p/5262998#M472367</link>
      <description>How can nslookup function (access DNS) if there is no /etc/nsswitch.conf file?&lt;BR /&gt;I have multiple HP-UX servers (11i and 11iv2)&lt;BR /&gt;Some with nsswitch.conf, some without.&lt;BR /&gt;Presense of nsswitch.conf seems to change nothing.&lt;BR /&gt;Some have the DNS server in their /etc/hosts, &lt;BR /&gt;some do not.&lt;BR /&gt;Adding or removing DNS server from /etc/hosts seems to change nothing.&lt;BR /&gt;One server has no nsswitch.conf, no DNS entry in /etc/hosts, but for "sys" group users, nslookup works fine.&lt;BR /&gt;Not for anyone else.&lt;BR /&gt;ftp doesn't resolve the same as nslookup&lt;BR /&gt;traceroute resolves fine for everyone.&lt;BR /&gt;ping resolves fine for everyone.</description>
      <pubDate>Tue, 16 Nov 2010 20:12:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nslookup/m-p/5262998#M472367</guid>
      <dc:creator>Clay_Chappell</dc:creator>
      <dc:date>2010-11-16T20:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: nslookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nslookup/m-p/5262999#M472368</link>
      <description>/etc/nsswitch.conf defines the policy for nslookup.  Whether the command to be looked up files or dns or nis etc. &lt;BR /&gt;&lt;BR /&gt;Alternatively, you can specify all these info in .nslookuprc file in user's home directory using set command.&lt;BR /&gt;&lt;BR /&gt;Read man pages.&lt;BR /&gt;&lt;BR /&gt;man nslookup.</description>
      <pubDate>Tue, 16 Nov 2010 20:24:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nslookup/m-p/5262999#M472368</guid>
      <dc:creator>Shibin_2</dc:creator>
      <dc:date>2010-11-16T20:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: nslookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nslookup/m-p/5263000#M472369</link>
      <description>If no /etc/nsswitch.conf is present on the system, then there are default policies that are used by the system.  According to the nslookup man page:&lt;BR /&gt;&lt;BR /&gt;The library functions contain compiled-in default entries that are used if the appropriate entry in nsswitch.conf is absent or&lt;BR /&gt;syntactically incorrect. The entries are as follows:&lt;BR /&gt;[...]&lt;BR /&gt;hosts:          dns [NOTFOUND=return] nis [NOTFOUND=return] files&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;So, that explains part of the behavior.  &lt;BR /&gt;&lt;BR /&gt;The other part of the equation is the /etc/resolv.conf file.  The DNS servers that are used to look up host info are specified there.&lt;BR /&gt;&lt;BR /&gt;The DNS server being in the /etc/hosts file will not accomplish much.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;One server has no nsswitch.conf, no DNS &lt;BR /&gt;&amp;gt;&amp;gt;entry in /etc/hosts, but for "sys" group &lt;BR /&gt;&amp;gt;&amp;gt;users, nslookup works fine.&lt;BR /&gt;&lt;BR /&gt;I suspect in this case that you have an /etc/resolv.conf file and that the permissions allow reading of the file by the owner and group, which are probably root and sys respectively (the defaults).&lt;BR /&gt;&lt;BR /&gt;To resolv this, you need to make the file world READable (you don't need world write or world execute).&lt;BR /&gt;&lt;BR /&gt;chmod o+r /etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Nov 2010 20:57:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nslookup/m-p/5263000#M472369</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2010-11-16T20:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: nslookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nslookup/m-p/5263001#M472370</link>
      <description>I'll give you a 9 for effort, but you were too slow.&lt;BR /&gt;We discovered the permission error on /etc/resolv.conf just moments before you responded</description>
      <pubDate>Tue, 16 Nov 2010 21:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nslookup/m-p/5263001#M472370</guid>
      <dc:creator>Clay_Chappell</dc:creator>
      <dc:date>2010-11-16T21:04:49Z</dc:date>
    </item>
  </channel>
</rss>

