<?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: unable to ping localhost in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583452#M592579</link>
    <description>You con't need to set up a resolv.conf if you don't have a DNS server on the network, but I would set up /etc/nsswitch.conf just a matter of convention.  You could probably just copy /etc/nsswitch.files (or /etc/nsswitch.nis if you're using NIS)  to /etc/nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
    <pubDate>Sun, 23 Sep 2001 11:37:44 GMT</pubDate>
    <dc:creator>Santosh Nair_1</dc:creator>
    <dc:date>2001-09-23T11:37:44Z</dc:date>
    <item>
      <title>unable to ping localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583450#M592577</link>
      <description>hello all,&lt;BR /&gt;i'm having a weird problem, i changed ip address and netmask on 10.20 box with /sbin/set_parms initial. i think everything worked okay, but now i can not ping "localhost", but i can ping "127.0.0.1". the network doesn't have a DNS. do i need resolv.conf and nsswitch.conf in my /etc. my netstat  -rn shows the right gateway and 127.0.0.1 shows up. i can ping the other boxes in the same network and vice-versa. so NIC is working okay. why can't i ping "localhost". any help would be appreciated. also do i need to remove any traces of DNS entries on this box. it was inside before being moved to DMZ network.</description>
      <pubDate>Sun, 23 Sep 2001 06:03:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583450#M592577</guid>
      <dc:creator>jedd</dc:creator>
      <dc:date>2001-09-23T06:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: unable to ping localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583451#M592578</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;  If U can ping to 127.0.0.1, then U should be able to ping to localhost. Ur problem is in /etc/hosts file. Please check the entry in /etc/hosts file, It shold be like this&lt;BR /&gt;&lt;BR /&gt;127.0.0.1   localhost    loopback&lt;BR /&gt;&lt;BR /&gt;  Best of luck&lt;BR /&gt;&lt;BR /&gt;  Shahul&lt;BR /&gt;</description>
      <pubDate>Sun, 23 Sep 2001 06:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583451#M592578</guid>
      <dc:creator>Shahul</dc:creator>
      <dc:date>2001-09-23T06:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: unable to ping localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583452#M592579</link>
      <description>You con't need to set up a resolv.conf if you don't have a DNS server on the network, but I would set up /etc/nsswitch.conf just a matter of convention.  You could probably just copy /etc/nsswitch.files (or /etc/nsswitch.nis if you're using NIS)  to /etc/nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Sun, 23 Sep 2001 11:37:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583452#M592579</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-09-23T11:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: unable to ping localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583453#M592580</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;First, make sure that your /etc/hosts contains the following line:&lt;BR /&gt;&lt;BR /&gt;127.0.0.1 localhost loopback&lt;BR /&gt;&lt;BR /&gt;Then, since you say you don't want any DNS in operation, edit your /etc/nsswitch.conf file so that its entries specify "host" only, as:&lt;BR /&gt;&lt;BR /&gt;hosts: files&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sun, 23 Sep 2001 12:15:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583453#M592580</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-09-23T12:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: unable to ping localhost</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583454#M592581</link>
      <description>Hi Jedd,&lt;BR /&gt;&lt;BR /&gt;does you /etc/hosts file reflect the chnages you have made. How are you trying to ping your own server. Through IP or through the hostname. &lt;BR /&gt;&lt;BR /&gt;Since, you are not using DNS, you don't need a /etc/resolv.conf . If there is one, you can safely remove it. Also you can keep /etc/nsswitch.conf file and have this entry for hosts over there&lt;BR /&gt;hosts files&lt;BR /&gt;&lt;BR /&gt;Also see that the entry for localhost is there as advised by other forum mebers already. Also check that the new hostname and ip of your system are correctly reflected in your /etc/hosts file. you may still have the old name and ip in that file and that might be creating problem for you.&lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Sun, 23 Sep 2001 16:16:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/unable-to-ping-localhost/m-p/2583454#M592581</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-09-23T16:16:44Z</dc:date>
    </item>
  </channel>
</rss>

