<?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: host file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209769#M793285</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you give us more details?. If you are talking about /etc/hosts, then there is no need to restart everything. The new entry will be picked up by all the subsequent gethostbyname|addr calls. TO verify it use&lt;BR /&gt;'nslookup host_name' command.&lt;BR /&gt;&lt;BR /&gt;Also make sure you have files appearing as the first option in your /etc/nsswtich.conf.&lt;BR /&gt;&lt;BR /&gt;If you are not talking about /etc/hosts, then you can ignore this entire message.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Thu, 04 Mar 2004 13:52:46 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-03-04T13:52:46Z</dc:date>
    <item>
      <title>host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209768#M793284</link>
      <description>We run Unix 11.00 on L1000 server.&lt;BR /&gt;How to reload host file without server reboot.&lt;BR /&gt;We tried /usr/sbin/inetd -c:  no result...&lt;BR /&gt;Can you tell me which command can we use?&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 04 Mar 2004 13:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209768#M793284</guid>
      <dc:creator>Sylvie Vezina</dc:creator>
      <dc:date>2004-03-04T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209769#M793285</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you give us more details?. If you are talking about /etc/hosts, then there is no need to restart everything. The new entry will be picked up by all the subsequent gethostbyname|addr calls. TO verify it use&lt;BR /&gt;'nslookup host_name' command.&lt;BR /&gt;&lt;BR /&gt;Also make sure you have files appearing as the first option in your /etc/nsswtich.conf.&lt;BR /&gt;&lt;BR /&gt;If you are not talking about /etc/hosts, then you can ignore this entire message.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 04 Mar 2004 13:52:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209769#M793285</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-03-04T13:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209770#M793286</link>
      <description>Bonjour Sylvie,&lt;BR /&gt;&lt;BR /&gt;   tu ne serais pas suppose d'avoir besoin de rebooter le serveur si tu ne fais qu'un changement a l'interieur de ton /etc/hosts.  A partir du moment ou ton /etc/hosts est change, le changement est automatique.&lt;BR /&gt;&lt;BR /&gt;   Le probleme reside peut-etre de la maniere dont tu resous les adresses par contre.  Comment est-ce que tu resous les adresses (regarde ton fichier /etc/nsswitch.conf) Si tu regardes files en premier, et que tu fais un ping sur le nom (ou l'adresse) que tu as change tu devrais resoudre a la nouvelle adresse.</description>
      <pubDate>Thu, 04 Mar 2004 13:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209770#M793286</guid>
      <dc:creator>Marco Santerre</dc:creator>
      <dc:date>2004-03-04T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209771#M793287</link>
      <description>If you are talking about the /etc/hosts file then there is nothing you need to do to make the system "re-read" it.&lt;BR /&gt;&lt;BR /&gt;The problem may be that you have and /etc/resolv.conf file which is telling the computer to look at a different source rather then the /etc/hosts file.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2004 13:55:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209771#M793287</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2004-03-04T13:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209772#M793288</link>
      <description>Once the /etc/hosts file is updated, the changes take effect. Unless you are using DNS or NIS, and in that case the system may be going there first to resolve the host name. Take a look at your /etc/nsswitch.conf file and the /etc/resolv.conf files and let us know.&lt;BR /&gt;&lt;BR /&gt;-Hazem</description>
      <pubDate>Thu, 04 Mar 2004 13:57:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209772#M793288</guid>
      <dc:creator>Hazem Mahmoud_3</dc:creator>
      <dc:date>2004-03-04T13:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209773#M793289</link>
      <description>Yes - what is in /etc/nsswitch.conf?&lt;BR /&gt;&lt;BR /&gt;Like:&lt;BR /&gt;&lt;BR /&gt;hosts:        files [NOTFOUND=CONTINUE] dns&lt;BR /&gt;&lt;BR /&gt;Or: hosts:        dns&lt;BR /&gt;&lt;BR /&gt;If the latter - then it won't read /etc/hosts at all....&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Mar 2004 14:03:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209773#M793289</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-03-04T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209774#M793290</link>
      <description>You were right, problem was DNS resolution....But many of you mentionned nsswitch.conf....and I don't find this file on system.....Must I create it or not?</description>
      <pubDate>Thu, 04 Mar 2004 14:03:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209774#M793290</guid>
      <dc:creator>Sylvie Vezina</dc:creator>
      <dc:date>2004-03-04T14:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209775#M793291</link>
      <description>Yes, you should create it.  It controls the order in which the hosts file and / or DNS/NIS/NIS+ etc will be checked for hostname resolution.&lt;BR /&gt;&lt;BR /&gt;Mine generally look like this:&lt;BR /&gt;&lt;BR /&gt;# ll /etc/nsswitch.conf&lt;BR /&gt;-rw-r--r--   1 root       sys            345 Jul  2  1998 /etc/nsswitch.conf&lt;BR /&gt;&lt;BR /&gt;# cat /etc/nsswitch.conf&lt;BR /&gt;hosts: files[NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]&lt;BR /&gt;protocols: files[NOTFOUND=return UNAVAIL=return] &lt;BR /&gt;services: files[NOTFOUND=return UNAVAIL=return] &lt;BR /&gt;networks: files[NOTFOUND=return UNAVAIL=return] &lt;BR /&gt;netgroup: files[NOTFOUND=return UNAVAIL=return] &lt;BR /&gt;rpc: files[NOTFOUND=return UNAVAIL=return] &lt;BR /&gt;&lt;BR /&gt;The line you are most concerned about is the first line (the hosts: line).  Mine checks the local /etc/hosts first and then looks to DNS.</description>
      <pubDate>Thu, 04 Mar 2004 14:07:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209775#M793291</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-03-04T14:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209776#M793292</link>
      <description>Sylvie -&lt;BR /&gt; Marco did indeed point to nsswitch.conf.&lt;BR /&gt;No points here.&lt;BR /&gt;You should be all set with the given answers.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;dl</description>
      <pubDate>Thu, 04 Mar 2004 14:16:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209776#M793292</guid>
      <dc:creator>Dave La Mar</dc:creator>
      <dc:date>2004-03-04T14:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209777#M793293</link>
      <description>Hello,&lt;BR /&gt;Also use /etc/resolve.conf for indicate wich dns server to use :&lt;BR /&gt;domain XX.YYYY.fr&lt;BR /&gt;search XX.YYYY.fr&lt;BR /&gt;nameserver1 128.240.229.18&lt;BR /&gt;nameserver2 128.240.229.34&lt;BR /&gt;&lt;BR /&gt;You can use nslookup and nsquery to verify the host resolution (#nsquery hosts hostname_to_resolve )&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 04:02:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209777#M793293</guid>
      <dc:creator>Francois LAURENT</dc:creator>
      <dc:date>2004-03-05T04:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: host file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209778#M793294</link>
      <description>Sylvie,&lt;BR /&gt;The order of name resolution is first any name call looks up the local hosts file and in the event that the host entry is not present in the local hosts file, then it will lookup your DNS server.&lt;BR /&gt;&lt;BR /&gt;Your local hosts file will be at /etc/hosts&lt;BR /&gt;&lt;BR /&gt;So if you would need to add in an entry for a host, you can just edit this file and add in that entry. &lt;BR /&gt;&lt;BR /&gt;No reboot is needed after doing this, as after you are done editing the hosts file, any lookups to the host you added will be looked into the /etc/hosts file before going to your DNS server&lt;BR /&gt;&lt;BR /&gt;I hope i have been clear&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Mobeen</description>
      <pubDate>Fri, 05 Mar 2004 05:40:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/host-file/m-p/3209778#M793294</guid>
      <dc:creator>Mobeen_1</dc:creator>
      <dc:date>2004-03-05T05:40:43Z</dc:date>
    </item>
  </channel>
</rss>

