<?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: Ping cannot use /etc/hosts for IP resolution in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755196#M528097</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Look at your /etc/nsswitch.conf file and see the entries against hosts. If the entry is set as &lt;BR /&gt;&lt;BR /&gt;hosts : files&lt;BR /&gt;&lt;BR /&gt;This will use your /etc/hosts for name resolution and should use your /etc/files file to do the ping if the hostname exists in the file. Try this link below on how to configure this /etc/nsswitch.conf file.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90147/00/00/9-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90147/00/00/9-toc.html&amp;amp;searchterms=nsswitch.conf&amp;amp;queryid=20020708-130834" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90147/00/00/9-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90147/00/00/9-toc.html&amp;amp;searchterms=nsswitch.conf&amp;amp;queryid=20020708-130834&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, 08 Jul 2002 18:59:01 GMT</pubDate>
    <dc:creator>Sanjay_6</dc:creator>
    <dc:date>2002-07-08T18:59:01Z</dc:date>
    <item>
      <title>Ping cannot use /etc/hosts for IP resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755188#M528089</link>
      <description>Hi Freinds,&lt;BR /&gt;&lt;BR /&gt;The ping command in HP-UX 11i is not using /etc/hosts file for IP resolution.&lt;BR /&gt;&lt;BR /&gt;ping hostname results in error saying that there is no such hostname. Even ping cannot ping the same hostname.&lt;BR /&gt;&lt;BR /&gt;However, ping IP_ADDRESS is working as usual.&lt;BR /&gt;&lt;BR /&gt;Do you have any idea behind this problem ?&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;BR /&gt;NAKHAN</description>
      <pubDate>Mon, 01 Jul 2002 03:40:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755188#M528089</guid>
      <dc:creator>N A Khan</dc:creator>
      <dc:date>2002-07-01T03:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ping cannot use /etc/hosts for IP resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755189#M528090</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Have a look at your /etc/nsswitch.conf file&lt;BR /&gt;&lt;BR /&gt;This should state what is to be used to resolve hostnames &lt;BR /&gt;&lt;BR /&gt;An entry for hosts should look like&lt;BR /&gt;&lt;BR /&gt;hosts:          files [NOTFOUND=continue] dns&lt;BR /&gt;&lt;BR /&gt;Stating that /etc/hosts will first be used. If the host is not found then dns will be used&lt;BR /&gt;&lt;BR /&gt;Your dns server will be set up in your /etc/resolv.conf file&lt;BR /&gt;&lt;BR /&gt;Test to see which function is being used &lt;BR /&gt;&lt;BR /&gt;nslookup &lt;HOSTNAME&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Steve&lt;/HOSTNAME&gt;</description>
      <pubDate>Mon, 01 Jul 2002 03:47:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755189#M528090</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-07-01T03:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Ping cannot use /etc/hosts for IP resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755190#M528091</link>
      <description>First check to see how your /etc/nsswitch.conf file is configured. It should be to your /etc/hosts file first, as shown below.&lt;BR /&gt;&lt;BR /&gt;hosts: files     [NOTFOUND=continue UNAVAIL=return TRYAGAIN=return] dns   [NOTFO&lt;BR /&gt;UND=return UNAVAIL=continue TRYAGAIN=return]&lt;BR /&gt;&lt;BR /&gt;$ more /etc/resolv.conf&lt;BR /&gt;domain mydomain.com.au&lt;BR /&gt;nameserver 10.43.100.2&lt;BR /&gt;nameserver 10.33.100.3&lt;BR /&gt;&lt;BR /&gt;Removing this file or moving it to .old should resolve locally anyway. See how this goes.</description>
      <pubDate>Mon, 01 Jul 2002 03:57:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755190#M528091</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-07-01T03:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Ping cannot use /etc/hosts for IP resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755191#M528092</link>
      <description>Hi Khan,&lt;BR /&gt;&lt;BR /&gt;Do the following:&lt;BR /&gt;&lt;BR /&gt;1. Rename your nsswitch.conf file.&lt;BR /&gt;  # cd /etc&lt;BR /&gt;  # mv nsswitch.conf nsswitch.conf.old&lt;BR /&gt;&lt;BR /&gt;2. First check your hostname&lt;BR /&gt;  # hostname&lt;BR /&gt;   abcd&lt;BR /&gt;&lt;BR /&gt;3. After that check your hosts file for the entry of your server name.&lt;BR /&gt;&lt;BR /&gt;4. Now try pinging to your server.&lt;BR /&gt;  # ping abcd&lt;BR /&gt;&lt;BR /&gt;If this works, it indicates your hosts entry in the nsswitch.conf has to be changed as mentioned below.&lt;BR /&gt;  hosts : files dns nis&lt;BR /&gt;  &lt;BR /&gt;&lt;BR /&gt;-Sukant&lt;BR /&gt;  &lt;BR /&gt;</description>
      <pubDate>Mon, 01 Jul 2002 04:43:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755191#M528092</guid>
      <dc:creator>Sukant Naik</dc:creator>
      <dc:date>2002-07-01T04:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Ping cannot use /etc/hosts for IP resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755192#M528093</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;in standard the HP_UX OS has what we would call an priority setup in name resolution , 3 methodes of name resolution are actively present/possible on the system : DNS , NIS and files (/etc/hosts) , the priority is that first the system will always go to DNS , if no DNS can be found it will go to NIS if non is found we revert to hosts file... there is away to revert this behaviour being the use of the /etc/nsswitch.conf file ,in this file you alter the search order , in your case that would require and entry like this &lt;BR /&gt;&lt;BR /&gt;hosts : files [NOTFOUND=continue] DNS [NOTFOUND=continue] &lt;BR /&gt;&lt;BR /&gt;that should solve your issue</description>
      <pubDate>Mon, 01 Jul 2002 08:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755192#M528093</guid>
      <dc:creator>sven verhaegen</dc:creator>
      <dc:date>2002-07-01T08:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Ping cannot use /etc/hosts for IP resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755193#M528094</link>
      <description>Although the above comments about the nsswitch.conf file are probably the answer to your query, if that configuration file is already setup correctly you may have a corrupt hosts file (incorrect syntax).</description>
      <pubDate>Fri, 05 Jul 2002 23:55:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755193#M528094</guid>
      <dc:creator>Daimian Woznick</dc:creator>
      <dc:date>2002-07-05T23:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ping cannot use /etc/hosts for IP resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755194#M528095</link>
      <description>Hi Khan&lt;BR /&gt;&lt;BR /&gt;the issue can be like this :&lt;BR /&gt;&lt;BR /&gt;1. wrong or incoorect /etc/resolv.conf&lt;BR /&gt;2. incorrect or missing /etc/nssswitch.conf&lt;BR /&gt;3. wrong or no entry in DNS .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Do a nslookup local hostname and see how is resolves , it must be looking for nsswitch.conf to get the information of how it will resolv the hostname . If that inforamtion is correct thean check for the DNS server anme entry in /etc/resolv.conf .&lt;BR /&gt;&lt;BR /&gt;The easiest way to solve is to mv /etc/resolv.conf to .old and then check doing a nslook up &amp;lt; local hostname &amp;gt; it should use /etc/hosts to resolve the name , once this is done than you can go to check for nsswitch / reslov.conf and then DNS entry in that order.&lt;BR /&gt;&lt;BR /&gt;All the best and please do award points , if you find the solution give here are helpful&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Manoj Srivastava&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Jul 2002 02:56:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755194#M528095</guid>
      <dc:creator>MANOJ SRIVASTAVA</dc:creator>
      <dc:date>2002-07-06T02:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ping cannot use /etc/hosts for IP resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755195#M528096</link>
      <description>On 11.11 if you ipv6 loaded on the box then you need the line in nsswitch.conf file&lt;BR /&gt;ipnodes : files [NOTFOUND=CONTINUE] dns&lt;BR /&gt;This is more than likely the problem.</description>
      <pubDate>Mon, 08 Jul 2002 17:58:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755195#M528096</guid>
      <dc:creator>Darrick Schuch</dc:creator>
      <dc:date>2002-07-08T17:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Ping cannot use /etc/hosts for IP resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755196#M528097</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Look at your /etc/nsswitch.conf file and see the entries against hosts. If the entry is set as &lt;BR /&gt;&lt;BR /&gt;hosts : files&lt;BR /&gt;&lt;BR /&gt;This will use your /etc/hosts for name resolution and should use your /etc/files file to do the ping if the hostname exists in the file. Try this link below on how to configure this /etc/nsswitch.conf file.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90147/00/00/9-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90147/00/00/9-toc.html&amp;amp;searchterms=nsswitch.conf&amp;amp;queryid=20020708-130834" target="_blank"&gt;http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&amp;amp;con=/hpux/onlinedocs/B2355-90147/00/00/9-con.html&amp;amp;toc=/hpux/onlinedocs/B2355-90147/00/00/9-toc.html&amp;amp;searchterms=nsswitch.conf&amp;amp;queryid=20020708-130834&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, 08 Jul 2002 18:59:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/2755196#M528097</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2002-07-08T18:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ping cannot use /etc/hosts for IP resolution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/6716298#M528098</link>
      <description>&lt;P&gt;thanks, this solved the problem I was facing&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://community.hpe.com/t5/Networking/hostname-resolution-not-working-with-lan0-down-on-hpux/td-p/6716202"&gt;unable to ping with lan0 down&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2015 11:07:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ping-cannot-use-etc-hosts-for-ip-resolution/m-p/6716298#M528098</guid>
      <dc:creator>Himanshu_Sourav</dc:creator>
      <dc:date>2015-03-05T11:07:37Z</dc:date>
    </item>
  </channel>
</rss>

