<?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: Name resolution question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5350927#M606243</link>
    <description>&lt;P&gt;Perhaps your /etc/nsswitch.conf is not readable by that user?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2011 06:43:37 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2011-10-03T06:43:37Z</dc:date>
    <item>
      <title>Name resolution question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5350919#M606242</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a system only resolves by files, so I have left "/etc/nsswitch.conf" as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hosts:files&lt;BR /&gt;﻿&lt;/P&gt;&lt;P&gt;When I nslookup as root , the behaviour is the expected: "Using /etc/hosts on: ﻿...". But, when I try with another user it reads "/etc/resolv.conf", because it resolves by DNS, not by files as stated in&amp;nbsp;"/etc/nsswitch.conf" ﻿. What can be the reason for&amp;nbsp; this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2011 06:35:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5350919#M606242</guid>
      <dc:creator>Santos Vega</dc:creator>
      <dc:date>2011-10-03T06:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Name resolution question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5350927#M606243</link>
      <description>&lt;P&gt;Perhaps your /etc/nsswitch.conf is not readable by that user?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2011 06:43:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5350927#M606243</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-10-03T06:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Name resolution question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5350935#M606244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, it was not readable (600 permissions). What I did was rename "/etc/resolv.conf".&amp;nbsp; Now "/etc/nsswitch.conf"﻿ is 444, but my question is: If user cannot read "/etc/nsswitch.conf" , why does it resolve by DNS and not by files?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2011 06:56:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5350935#M606244</guid>
      <dc:creator>Santos Vega</dc:creator>
      <dc:date>2011-10-03T06:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Name resolution question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5351103#M606245</link>
      <description>&lt;P&gt;If the process cannot read /etc/nsswitch.conf when it starts up, it uses HP-UX built-in defaults, which for IPv4 hostname resolution are: first DNS, then NIS, then files = /etc/hosts. If DNS or NIS reports that a host does not exist, next sources are not tried (i.e. [NOTFOUND=return] is in effect). This is documented in the nsswitch.conf man page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For IPv6-aware processes on 11.23 and newer, the "ipnodes"&amp;nbsp; line in /etc/nsswitch.conf is typically used instead of "hosts" - even for looking up IPv4 hostnames. The defaults for "ipnodes" omit NIS, but are otherwise identical to the defaults of "hosts".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At least on 11.23, the man page says: "The library functions contain compiled-in default entries that are used if the appropriate entry in nsswitch.conf is absent or syntactically incorrect" but in fact the defaults will also be used if /etc/nsswitch.conf is not readable for any reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2011 09:49:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5351103#M606245</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-10-03T09:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Name resolution question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5351253#M606246</link>
      <description>&lt;P&gt;Ok, thank you very much for your help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2011 12:11:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/name-resolution-question/m-p/5351253#M606246</guid>
      <dc:creator>Santos Vega</dc:creator>
      <dc:date>2011-10-03T12:11:05Z</dc:date>
    </item>
  </channel>
</rss>

