<?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: nsswitch file usage question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680418#M589569</link>
    <description>What does your /etc/resolv.conf file's look like.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
    <pubDate>Mon, 11 Mar 2002 17:50:07 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2002-03-11T17:50:07Z</dc:date>
    <item>
      <title>nsswitch file usage question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680417#M589568</link>
      <description>Hi all:&lt;BR /&gt;&lt;BR /&gt;We??ve got some systems with nsswitch file on /etc and few more without it.&lt;BR /&gt;&lt;BR /&gt;On the first group, if we delete nsswitch file, system works with some problems, slow telnet connections, CDE environment fails, slow Oracle responses, etc...&lt;BR /&gt;&lt;BR /&gt;On the second group, all systems works fine without nsswitch.&lt;BR /&gt;&lt;BR /&gt;Can anyone explain what??s the purpose of such file and why is needed on some systems and not in others?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Mon, 11 Mar 2002 17:46:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680417#M589568</guid>
      <dc:creator>Manuel G</dc:creator>
      <dc:date>2002-03-11T17:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: nsswitch file usage question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680418#M589569</link>
      <description>What does your /etc/resolv.conf file's look like.&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Mon, 11 Mar 2002 17:50:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680418#M589569</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-03-11T17:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: nsswitch file usage question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680419#M589570</link>
      <description>The nsswitch file is important for cycling through the possible sources of host to ip information.&lt;BR /&gt;&lt;BR /&gt;If a nsswitch file is setup to look at the hosts file and then quit if it does not find an answer, you will never touch a DNS server. That is why the nsswitch file is important.  &lt;BR /&gt;&lt;BR /&gt;Post the contents of that file as well as the resolv.conf like Harry asked for.&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Mon, 11 Mar 2002 17:53:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680419#M589570</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-03-11T17:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: nsswitch file usage question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680420#M589571</link>
      <description>If nsswitch file on some hosts&lt;BR /&gt;works fine : check the method of hosts resolution &lt;BR /&gt;it should be something like   hosts: files   [NOTFOUND=continue UNAVAIL=continue] dns     [NOTFOUND=return UNAVAIL=continue TRYAGAIN=continue&lt;BR /&gt;&lt;BR /&gt;This would typically tell you how hostname get resolved , First it looks for /etchosts file thne if it didnot find entry in hosts look for DNS .&lt;BR /&gt;&lt;BR /&gt;Second you can look for /etc/resolv.conf file and check for search order and domain name. &lt;BR /&gt;Do you have DNS running in your env..??&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Mon, 11 Mar 2002 17:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680420#M589571</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-03-11T17:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: nsswitch file usage question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680421#M589572</link>
      <description>Hi Manuel,&lt;BR /&gt;&lt;BR /&gt;Try this link below,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90685/00/00/8-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90685/00/00/8-toc.html&amp;amp;searchterms=nsswitch.conf&amp;amp;queryid=20020311-101557" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90685/B2355-90685_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90685/00/00/8-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90685/00/00/8-toc.html&amp;amp;searchterms=nsswitch.conf&amp;amp;queryid=20020311-101557&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Mar 2002 18:09:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680421#M589572</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-03-11T18:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: nsswitch file usage question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680422#M589573</link>
      <description>The nsswitch.conf is a creation by SUN Microsystems&lt;BR /&gt;(you remember those who came up with the yellow pages, what later turned into NIS =&amp;gt; NIS+ owe to legal issues with British Telecom)&lt;BR /&gt;There should be a nice manpage installed on your system that explains its purpose well.&lt;BR /&gt;Although generally for many name services (e.g. DNS, NIS, LDAP?) it is also used (if present) by the resolver to decide the order in which to query either your DNS server or /etc/hosts.&lt;BR /&gt;To speed things up Files should be first (but only list loopback, hostname, node names of peer SG cluster nodes, and package names in /etc/hosts, nothing more), then let it query your DNS server.&lt;BR /&gt;Otherwise you can get nasty timeouts especially when DNS is not available.&lt;BR /&gt;The firewallers occasionally (unitentionally?) drop packets for port 53 ;-)&lt;BR /&gt;The syntax iof /etc/nsswitch.conf s thoroughly explained in the mentioned manpage.&lt;BR /&gt;type&lt;BR /&gt;man nsswitch.conf&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Mar 2002 18:21:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680422#M589573</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2002-03-11T18:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: nsswitch file usage question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680423#M589574</link>
      <description>/etc/resolv.conf:&lt;BR /&gt;domain enyca.es&lt;BR /&gt;nameserver 192.168.1.100&lt;BR /&gt;&lt;BR /&gt;/etc/nsswitch:&lt;BR /&gt;#&lt;BR /&gt;# /etc/nsswitch.conf&lt;BR /&gt;#&lt;BR /&gt;# This is the default configuration file for the name service switch.&lt;BR /&gt;# It will cause behavior similar to that performed on prior HP-UX &lt;BR /&gt;# releases when a configurable name service algorithm was not provided.&lt;BR /&gt;#&lt;BR /&gt;# If the /etc/nsswitch.conf file is not present, it will default to the &lt;BR /&gt;# behavior represented by the ordering and conditions below.&lt;BR /&gt;#&lt;BR /&gt;# See the Adminstering Internet Services Manual and the switch(4) man&lt;BR /&gt;# page for more information on the name service switch.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;group: files nis dns&lt;BR /&gt;passwd: files[NOTFOUND=continue UNAVAIL=continue] nis [NOTFOUND=return UNAVAIL=continue TRAYAGAIN=return]&lt;BR /&gt;hosts: files [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return] dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return] nis &lt;BR /&gt;services: nis [NOTFOUND=return UNAVAIL=continue] files&lt;BR /&gt;networks: nis [NOTFOUND=return UNAVAIL=continue] files&lt;BR /&gt;aliases: dns  &lt;BR /&gt;netgroup: nis [NOTFOUND=return UNAVAIL=continue] files&lt;BR /&gt;rpc: nis [NOTFOUND=return UNAVAIL=continue] files&lt;BR /&gt;protocols: nis [NOTFOUND=return UNAVAIL=continue] files&lt;BR /&gt;passwd: files&lt;BR /&gt;group: files&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Mar 2002 08:27:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680423#M589574</guid>
      <dc:creator>Manuel G</dc:creator>
      <dc:date>2002-03-12T08:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: nsswitch file usage question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680424#M589575</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;First, see man nsswitch.conf.  It's got some good info.&lt;BR /&gt;&lt;BR /&gt;There are a number of "databases" which are used (or could possibly be used) by the system.  They contain information about hostnames, IP addresses, users, and a number of others.  nsswitch.conf is used to specify which databases are searched and in what order.&lt;BR /&gt;&lt;BR /&gt;For example, hostname to IP address resolution can be performed using /etc/hosts, DNS, NIS, or NIS+.  If you don't use some of these, you shouldn't have them in nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt;According to the man page, by default, the OS uses the following to resolve IP addresses and hostnames:&lt;BR /&gt;hosts: nis [NOTFOUND=return] files&lt;BR /&gt;If nis is not in use, /etc/hosts will be checked (files means to use the standard configuration file on the local host).  If nis is configured and nis does not find the entry being resolved, then resolution ends without consulting /etc/hosts.&lt;BR /&gt;&lt;BR /&gt;So, from the info in the man page it can be determince that the system will work fine without nsswitch.conf IF nis is not used and the local configuration files contain all the info needed.&lt;BR /&gt;&lt;BR /&gt;If you use NIS, NIS+, or DNS, you should create nsswitch.conf and modify it to suit your purposes.  At the least, if using nis, you probably need to change [NOTFOUND=return] to [NOTFOUND=continue].  Alternatively, you may want to change the order so that files is before nis.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 12 Mar 2002 14:31:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680424#M589575</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-03-12T14:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: nsswitch file usage question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680425#M589576</link>
      <description>How about trying a simple first line like:&lt;BR /&gt;&lt;BR /&gt;hosts:          files [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] dns&lt;BR /&gt;&lt;BR /&gt;See what happens.&lt;BR /&gt;&lt;BR /&gt;GL,&lt;BR /&gt;C</description>
      <pubDate>Tue, 12 Mar 2002 14:38:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680425#M589576</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-03-12T14:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: nsswitch file usage question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680426#M589577</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;  For a system which is self-contained, i.e. it is not a part of NIS or depends on system info from other systems ,  there would be no necessity for nsswitch.conf.  But, most of the&lt;BR /&gt;unix systems out there are not  stand-alone&lt;BR /&gt;pieces, so by default we have nsswitch.conf file to help the system routines know where it has to pick specific objects from.&lt;BR /&gt;for instance:&lt;BR /&gt;hosts -&amp;gt;  this entry instructs where to look for host&amp;lt;-&amp;gt;ip information from : DNS server, or local /etc/hosts file.&lt;BR /&gt;&lt;BR /&gt;So each entry has a meaning. There are different versions of nsswitch.conf file based on the system you have. Look at &lt;BR /&gt;#ll /etc/nsswitch*&lt;BR /&gt;-r--r--r--   1 bin        bin            528 Nov  6  1997 /etc/nsswitch.compat&lt;BR /&gt;-r--r--r--   1 root       sys            377 Jan  5  2001 /etc/nsswitch.conf&lt;BR /&gt;-r--r--r--   1 root       sys            377 Jan  5  2001 /etc/nsswitch.conf.20010105&lt;BR /&gt;-r--r--r--   1 bin        bin            353 Nov  6  1997 /etc/nsswitch.files&lt;BR /&gt;-r--r--r--   1 bin        bin            555 Nov  6  1997 /etc/nsswitch.hp_defaults&lt;BR /&gt;-r--r--r--   1 bin        bin            513 Nov  6  1997 /etc/nsswitch.nis&lt;BR /&gt;-r--r--r--   1 bin        bin            566 Nov  6  1997 /etc/nsswitch.nisplus&lt;BR /&gt;&lt;BR /&gt;There are different versions for nisplus systems, nis system , plain(files)system.&lt;BR /&gt;Based on the system you have, you just have to copy the file to /etc/nsswitch.conf&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj</description>
      <pubDate>Tue, 12 Mar 2002 15:11:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nsswitch-file-usage-question/m-p/2680426#M589577</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2002-03-12T15:11:32Z</dc:date>
    </item>
  </channel>
</rss>

