<?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: default behavior config for host resolution in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770460#M22838</link>
    <description>I never touch the /etc/host.conf file.&lt;BR /&gt;I edit the /etc/nsswitch.conf file.&lt;BR /&gt;And in your case first the check is done against the DNS (thus you must edit the file /etc/resolv.conf and to make sure that the correct DNS server appears there. It looks like this:   nameserver  x.x.x.x).&lt;BR /&gt;Then the check is done against the /etc/hosts.file.&lt;BR /&gt;&lt;BR /&gt;Best practice is to put "files" before the DNS, so if there's something particular that you need only your host to resolv and the same hostname appears in DNS -you can simply add it to /etc/hosts file and that's it.&lt;BR /&gt;&lt;BR /&gt;Best regards.</description>
    <pubDate>Wed, 12 Apr 2006 03:36:57 GMT</pubDate>
    <dc:creator>Alexander Chuzhoy</dc:creator>
    <dc:date>2006-04-12T03:36:57Z</dc:date>
    <item>
      <title>default behavior config for host resolution</title>
      <link>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770459#M22837</link>
      <description>Hello All&lt;BR /&gt;Two files sets the default behavior for host resolution&lt;BR /&gt;i,  /etc/nsswitch.conf&lt;BR /&gt;ii, /etc/host.conf&lt;BR /&gt;OK&lt;BR /&gt;&lt;BR /&gt;If I want to config that first check with Dns server then local hosts file ... I have to configure both files ?&lt;BR /&gt;As,&lt;BR /&gt;in nsswitch.conf&lt;BR /&gt;hosts:      dns file&lt;BR /&gt;and in host.conf&lt;BR /&gt;order bind,hosts&lt;BR /&gt;&lt;BR /&gt;or which file have more precedenc/priority ?&lt;BR /&gt;that is if in case if there is a conflict e.g&lt;BR /&gt;in nsswitch.conf&lt;BR /&gt;hosts:      files dns&lt;BR /&gt;and in host.conf&lt;BR /&gt;order bind,hosts&lt;BR /&gt;&lt;BR /&gt;Plz Guide me&lt;BR /&gt;Regards</description>
      <pubDate>Wed, 12 Apr 2006 02:30:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770459#M22837</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-04-12T02:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: default behavior config for host resolution</title>
      <link>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770460#M22838</link>
      <description>I never touch the /etc/host.conf file.&lt;BR /&gt;I edit the /etc/nsswitch.conf file.&lt;BR /&gt;And in your case first the check is done against the DNS (thus you must edit the file /etc/resolv.conf and to make sure that the correct DNS server appears there. It looks like this:   nameserver  x.x.x.x).&lt;BR /&gt;Then the check is done against the /etc/hosts.file.&lt;BR /&gt;&lt;BR /&gt;Best practice is to put "files" before the DNS, so if there's something particular that you need only your host to resolv and the same hostname appears in DNS -you can simply add it to /etc/hosts file and that's it.&lt;BR /&gt;&lt;BR /&gt;Best regards.</description>
      <pubDate>Wed, 12 Apr 2006 03:36:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770460#M22838</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-04-12T03:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: default behavior config for host resolution</title>
      <link>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770461#M22839</link>
      <description>see also this link:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.linuxquestions.org/questions/showthread.php?t=245956" target="_blank"&gt;http://www.linuxquestions.org/questions/showthread.php?t=245956&lt;/A&gt;</description>
      <pubDate>Wed, 12 Apr 2006 04:05:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770461#M22839</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2006-04-12T04:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: default behavior config for host resolution</title>
      <link>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770462#M22840</link>
      <description>Maaz,&lt;BR /&gt;&lt;BR /&gt;The older glibc library configured host lookup ordering in the /etc/host.conf. This library is now obsolete and useless. Version 2 of the GNU standard library, glibc, uses /etc/nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt;Your system will probably provide host.conf for compatibility to enable older programs linked against the older library.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Apr 2006 04:24:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770462#M22840</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2006-04-12T04:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: default behavior config for host resolution</title>
      <link>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770463#M22841</link>
      <description>Very Nice help dear Alexander Chuzhoy and Sergejs Svitnevs ;) &lt;BR /&gt;Thanks a Million for such a promtp help&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Maaz</description>
      <pubDate>Wed, 12 Apr 2006 05:22:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/default-behavior-config-for-host-resolution/m-p/3770463#M22841</guid>
      <dc:creator>Maaz</dc:creator>
      <dc:date>2006-04-12T05:22:25Z</dc:date>
    </item>
  </channel>
</rss>

