<?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: what is the difference between /etc/host.conf and /etc/nsswitch.conf in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082205#M6885</link>
    <description>I understand quite well about nsswitch.conf and /etc/hosts,and what they are for, but not /etc/host.conf. I have redhat 9 server, and it does have such file. &lt;BR /&gt;&lt;BR /&gt;I still don't understand what /etc/host.conf for, and if the server works fine without it, why this file exists there.&lt;BR /&gt;&lt;BR /&gt;Point will be followed later.</description>
    <pubDate>Wed, 01 Oct 2003 17:14:24 GMT</pubDate>
    <dc:creator>Hanry Zhou</dc:creator>
    <dc:date>2003-10-01T17:14:24Z</dc:date>
    <item>
      <title>what is the difference between /etc/host.conf and /etc/nsswitch.conf</title>
      <link>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082200#M6880</link>
      <description>Do I have to use both of them, either one?&lt;BR /&gt;&lt;BR /&gt;Thanks,</description>
      <pubDate>Tue, 30 Sep 2003 16:52:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082200#M6880</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2003-09-30T16:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf</title>
      <link>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082201#M6881</link>
      <description>You MUST have nsswitch.conf.&lt;BR /&gt; &lt;BR /&gt;It decides how resolution like hostname resolution happens on your system.&lt;BR /&gt; &lt;BR /&gt;/etc/hosts is also a requirement, because all machines need a loopback address.  Beyond that, you don't have to use /etc/hosts for names resolution if you use DNS.&lt;BR /&gt; &lt;BR /&gt;nsswitch tells the machine how to resolve hostnames. hosts can be used to actually resolve hostnames.&lt;BR /&gt; &lt;BR /&gt;SEP&lt;BR /&gt;Please don't forget to assign points if this helps.&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Sep 2003 19:28:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082201#M6881</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-30T19:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf</title>
      <link>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082202#M6882</link>
      <description>Umm, he said 'host.conf', not 'hosts'.&lt;BR /&gt; &lt;BR /&gt;In any case Steve is right.&lt;BR /&gt; &lt;BR /&gt;The 'host.conf' is the old way of telling Linux the resolver order.  On other *nix systems, this was an entry in /etc/resolv.conf called 'hostresorder'.&lt;BR /&gt; &lt;BR /&gt;nsswitch.conf does this, as well as the lookup method/order for many other subsystems, thus it is far more useful.&lt;BR /&gt; &lt;BR /&gt;I'm unsure whether you can get away with not having a 'host.conf', but I think you can on a modern machine.</description>
      <pubDate>Tue, 30 Sep 2003 19:45:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082202#M6882</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-09-30T19:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf</title>
      <link>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082203#M6883</link>
      <description>I just removed my /etc/host.conf file on Slackware and it doesn't seem to have caused any ill effects so I think it's safe to say you don't really need it any more.</description>
      <pubDate>Wed, 01 Oct 2003 00:05:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082203#M6883</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-10-01T00:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf</title>
      <link>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082204#M6884</link>
      <description>The only important "hosts"-type files for you are:&lt;BR /&gt;/etc/hosts&lt;BR /&gt;/etc/hosts.equiv.&lt;BR /&gt;But you need /etc/nsswitch.conf indeed.&lt;BR /&gt;Regards.&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Oct 2003 10:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082204#M6884</guid>
      <dc:creator>Stanimir</dc:creator>
      <dc:date>2003-10-01T10:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf</title>
      <link>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082205#M6885</link>
      <description>I understand quite well about nsswitch.conf and /etc/hosts,and what they are for, but not /etc/host.conf. I have redhat 9 server, and it does have such file. &lt;BR /&gt;&lt;BR /&gt;I still don't understand what /etc/host.conf for, and if the server works fine without it, why this file exists there.&lt;BR /&gt;&lt;BR /&gt;Point will be followed later.</description>
      <pubDate>Wed, 01 Oct 2003 17:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082205#M6885</guid>
      <dc:creator>Hanry Zhou</dc:creator>
      <dc:date>2003-10-01T17:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: what is the difference between /etc/host.conf and /etc/nsswitch.conf</title>
      <link>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082206#M6886</link>
      <description>As I said in my post:&lt;BR /&gt; &lt;BR /&gt;The 'host.conf' is the old way of telling Linux the resolver order. On other *nix systems, this was an entry in /etc/resolv.conf called 'hostresorder'.&lt;BR /&gt; &lt;BR /&gt;"old way".  As in there are newer 'better' ways.  It's still there 'cause it's the most known in the Linux world.  As one of the other posters said, you can remove it, and it won't have any affect, assuming your nsswitch.conf is configured properly.</description>
      <pubDate>Wed, 01 Oct 2003 18:29:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/what-is-the-difference-between-etc-host-conf-and-etc-nsswitch/m-p/3082206#M6886</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2003-10-01T18:29:45Z</dc:date>
    </item>
  </channel>
</rss>

