<?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: can't resolve localhost (!) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705952#M587274</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;From the security perspective, I would suggest that you use the following order in /etc/nsswitch.conf:&lt;BR /&gt;&lt;BR /&gt;hosts: files [NOTFOUND=continue] dns &lt;BR /&gt;&lt;BR /&gt;instead of&lt;BR /&gt;&lt;BR /&gt;hosts: dns [NOTFOUND=continue] files&lt;BR /&gt;&lt;BR /&gt;For critical systems, hardcode the host-ip pairing in /etc/hosts. This ensures that even if the DNS server or its records get compromised, you can be assured that you are still connecting to the correct IP addresses of the critical systems.&lt;BR /&gt;&lt;BR /&gt;Such a configuration of files before dns in nsswitch.conf would be applicable in scenerios such as on a web application server connecting to the database server backend to perform queries etc.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
    <pubDate>Thu, 18 Apr 2002 08:24:54 GMT</pubDate>
    <dc:creator>Steven Sim Kok Leong</dc:creator>
    <dc:date>2002-04-18T08:24:54Z</dc:date>
    <item>
      <title>can't resolve localhost (!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705944#M587266</link>
      <description>I know this might very well be a stupid question, so I beg for your pardon in advance.&lt;BR /&gt;&lt;BR /&gt;We've got a HP-UX 11.00 server which has no way to resolve localhost to IP 127.0.0.1. We've got an entry for it in /etc/hosts, but it doesn't work.  I've asserted that disabling /etc/resolv.conf (by renaming it or by another means) "solves" the problem. But, of course, we need the /etc/resolv.conf.&lt;BR /&gt;&lt;BR /&gt;In a nuthsell... is there any way to make it resolve through /etc/hosts when DNS is not satisfactory?&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Thu, 18 Apr 2002 07:31:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705944#M587266</guid>
      <dc:creator>David Losada</dc:creator>
      <dc:date>2002-04-18T07:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: can't resolve localhost (!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705945#M587267</link>
      <description>I think what you're looking for is nsswitch.conf.&lt;BR /&gt;See "man nsswitch.conf" for details. A search on this forum for nsswitch.conf should throw up some useful information.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2002 07:37:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705945#M587267</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-18T07:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: can't resolve localhost (!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705946#M587268</link>
      <description>set up the /etc/nsswitch.conf file to either use files first, or go to files if DNS does not resolve.&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;hosts:  dns  [NOTFOUND=continue] files</description>
      <pubDate>Thu, 18 Apr 2002 07:37:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705946#M587268</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2002-04-18T07:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: can't resolve localhost (!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705947#M587269</link>
      <description>Edit your /etc/nsswitch.conf file like this:hosts:        dns [NOTFOUND=return] files&lt;BR /&gt;&lt;BR /&gt;There are some sample files for nsswitch.conf in /etc dir (nsswitch.*).&lt;BR /&gt;&lt;BR /&gt;Ruediger&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2002 07:42:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705947#M587269</guid>
      <dc:creator>Ruediger Noack</dc:creator>
      <dc:date>2002-04-18T07:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: can't resolve localhost (!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705948#M587270</link>
      <description>Hi David,&lt;BR /&gt;&lt;BR /&gt;Check your /etc/nsswitch.conf file&lt;BR /&gt;&lt;BR /&gt;for the line beginning "hosts"&lt;BR /&gt;This gives the sequence of searching for hosts, and can be edited accoring to your requirements.&lt;BR /&gt;&lt;BR /&gt;In your case, it sounds as if the first entry should be "files" - other options are dns, nis or nisplus&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Thu, 18 Apr 2002 07:49:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705948#M587270</guid>
      <dc:creator>John Strang</dc:creator>
      <dc:date>2002-04-18T07:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: can't resolve localhost (!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705949#M587271</link>
      <description>Thanks everybody&lt;BR /&gt;&lt;BR /&gt;problem is solved. used the nsswitch.files and modified the hosts entry as suggested.&lt;BR /&gt;&lt;BR /&gt;thanks a lot, again :)</description>
      <pubDate>Thu, 18 Apr 2002 07:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705949#M587271</guid>
      <dc:creator>David Losada</dc:creator>
      <dc:date>2002-04-18T07:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: can't resolve localhost (!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705950#M587272</link>
      <description>probably worth mentioning here.. SAM has a pretty thorough interface to configure the lookup switch order.. you should have a look at the options (quicker than the man)&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Thu, 18 Apr 2002 07:59:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705950#M587272</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2002-04-18T07:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: can't resolve localhost (!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705951#M587273</link>
      <description>thanks a lot for the pointer. The fact is that this is a server I'm assigned to admin and I've received no training on HP-UX (even though I've learned the nsswitch.conf is a general thing, thanks a lot).&lt;BR /&gt;&lt;BR /&gt;SAM looks like a very useful tool, thanks</description>
      <pubDate>Thu, 18 Apr 2002 08:16:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705951#M587273</guid>
      <dc:creator>David Losada</dc:creator>
      <dc:date>2002-04-18T08:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: can't resolve localhost (!)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705952#M587274</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;From the security perspective, I would suggest that you use the following order in /etc/nsswitch.conf:&lt;BR /&gt;&lt;BR /&gt;hosts: files [NOTFOUND=continue] dns &lt;BR /&gt;&lt;BR /&gt;instead of&lt;BR /&gt;&lt;BR /&gt;hosts: dns [NOTFOUND=continue] files&lt;BR /&gt;&lt;BR /&gt;For critical systems, hardcode the host-ip pairing in /etc/hosts. This ensures that even if the DNS server or its records get compromised, you can be assured that you are still connecting to the correct IP addresses of the critical systems.&lt;BR /&gt;&lt;BR /&gt;Such a configuration of files before dns in nsswitch.conf would be applicable in scenerios such as on a web application server connecting to the database server backend to perform queries etc.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Thu, 18 Apr 2002 08:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-resolve-localhost/m-p/2705952#M587274</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-18T08:24:54Z</dc:date>
    </item>
  </channel>
</rss>

