<?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: DNS in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967205#M65815</link>
    <description>What about ping?&lt;BR /&gt;&lt;BR /&gt;I've seen situation where dig/nslookup worked and ping did not and weirdly the reverse.&lt;BR /&gt;&lt;BR /&gt;Why don't you upload /etc/nsswitch.conf I suspect something strange going on.&lt;BR /&gt;&lt;BR /&gt;You might also want to make sure you have only one GATEWAY entry in either /etc/sysconfig/network or the ifcfg file in /etc/sysconfig/network-scripts directory.&lt;BR /&gt;&lt;BR /&gt;No GATEWAY entry can cause this kind of network weirdness. Two GATEWAYS can as well.&lt;BR /&gt;&lt;BR /&gt;I won't be looking at the upload for a bit, its bedtime.&lt;BR /&gt;&lt;BR /&gt;:0&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Thu, 22 Mar 2007 18:04:41 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-03-22T18:04:41Z</dc:date>
    <item>
      <title>DNS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967198#M65808</link>
      <description>I came across a wried situation.&lt;BR /&gt;&lt;BR /&gt;The nsswitch.conf is configured to use /etc/hosts file only. But when the /etc/resolv.conf does not exist, nslookup/dig took a long time to run then it timed out and returned nothing, even though there is an entry in /etc/hosts.&lt;BR /&gt;&lt;BR /&gt;Do you know how to fix this? thx.</description>
      <pubDate>Thu, 22 Mar 2007 12:19:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967198#M65808</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2007-03-22T12:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: DNS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967199#M65809</link>
      <description>/etc/nsswitch.conf defines what to use host/ip resolution, but both dig and nslookup  are DNS lookup utilities and basically require or check DNS .</description>
      <pubDate>Thu, 22 Mar 2007 13:23:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967199#M65809</guid>
      <dc:creator>Alexander Chuzhoy</dc:creator>
      <dc:date>2007-03-22T13:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: DNS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967200#M65810</link>
      <description>not true, if you have configured nsswitch.conf for hosts to look for only files(/etc/hosts)?</description>
      <pubDate>Thu, 22 Mar 2007 13:34:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967200#M65810</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2007-03-22T13:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: DNS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967201#M65811</link>
      <description>No, nslookup and dig don't care how nsswitch.conf is set up. They are specifically for doing DNS queries and can not operate against any other name services.&lt;BR /&gt;&lt;BR /&gt;Some versions of "host" use the system resolver and will honor the settings in nsswitch.conf, but on my RHEL4 systems host still only uses DNS.</description>
      <pubDate>Thu, 22 Mar 2007 14:15:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967201#M65811</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2007-03-22T14:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: DNS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967202#M65812</link>
      <description>As  Alexander said, nslookup, dig, host commands relies on DNS, even if nsswitch states that only local files should be used. The program that explicitly open /etc/hosts will resolve the hosts listed. See this related thread:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1110957" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1110957&lt;/A&gt;</description>
      <pubDate>Thu, 22 Mar 2007 14:22:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967202#M65812</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2007-03-22T14:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: DNS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967203#M65813</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Every system needs an /etc/resolv.conf file. Put one in that says this:&lt;BR /&gt;&lt;BR /&gt;nameserver 127.0.0.1 &lt;BR /&gt;&lt;BR /&gt;Also, add dns as a second line to the hosts lookup entry in /etc/nsswitch.conf&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 22 Mar 2007 14:39:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967203#M65813</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-22T14:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: DNS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967204#M65814</link>
      <description>updated /etc/resolv.conf with working nameservers.&lt;BR /&gt;&lt;BR /&gt;Place files first in /etc/nsswitch.conf for hosts.&lt;BR /&gt;&lt;BR /&gt;However, nslookup/dig of hostname/ip listed in /etc/hosts failed.&lt;BR /&gt;&lt;BR /&gt;this is wried....</description>
      <pubDate>Thu, 22 Mar 2007 16:39:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967204#M65814</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2007-03-22T16:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: DNS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967205#M65815</link>
      <description>What about ping?&lt;BR /&gt;&lt;BR /&gt;I've seen situation where dig/nslookup worked and ping did not and weirdly the reverse.&lt;BR /&gt;&lt;BR /&gt;Why don't you upload /etc/nsswitch.conf I suspect something strange going on.&lt;BR /&gt;&lt;BR /&gt;You might also want to make sure you have only one GATEWAY entry in either /etc/sysconfig/network or the ifcfg file in /etc/sysconfig/network-scripts directory.&lt;BR /&gt;&lt;BR /&gt;No GATEWAY entry can cause this kind of network weirdness. Two GATEWAYS can as well.&lt;BR /&gt;&lt;BR /&gt;I won't be looking at the upload for a bit, its bedtime.&lt;BR /&gt;&lt;BR /&gt;:0&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 22 Mar 2007 18:04:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967205#M65815</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-22T18:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: DNS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967206#M65816</link>
      <description>#&lt;BR /&gt;# /etc/nsswitch.conf&lt;BR /&gt;#&lt;BR /&gt;# An example Name Service Switch config file. This file should be&lt;BR /&gt;# sorted with the most-used services at the beginning.&lt;BR /&gt;#&lt;BR /&gt;# The entry '[NOTFOUND=return]' means that the search for an&lt;BR /&gt;# entry should stop if the search in the previous entry turned&lt;BR /&gt;# up nothing. Note that if the search failed due to some other reason&lt;BR /&gt;# (like no NIS server responding) then the search continues with the&lt;BR /&gt;# next entry.&lt;BR /&gt;#&lt;BR /&gt;# Legal entries are:&lt;BR /&gt;#&lt;BR /&gt;#       compat                  Use compatibility setup&lt;BR /&gt;#       nisplus                 Use NIS+ (NIS version 3)&lt;BR /&gt;#       nis                     Use NIS (NIS version 2), also called YP&lt;BR /&gt;#       dns                     Use DNS (Domain Name Service)&lt;BR /&gt;#       files                   Use the local files&lt;BR /&gt;#       [NOTFOUND=return]       Stop searching if not found so far&lt;BR /&gt;#&lt;BR /&gt;# For more information, please read the nsswitch.conf.5 manual page.&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;# passwd: files nis&lt;BR /&gt;# shadow: files nis&lt;BR /&gt;# group:  files nis&lt;BR /&gt;&lt;BR /&gt;passwd: compat&lt;BR /&gt;group:  compat&lt;BR /&gt;&lt;BR /&gt;#hosts:         files dns&lt;BR /&gt;hosts:          files [NOTFOUND=return]&lt;BR /&gt;#networks:      files dns&lt;BR /&gt;networks:       files &lt;BR /&gt;&lt;BR /&gt;services:       files&lt;BR /&gt;protocols:      files&lt;BR /&gt;rpc:            files&lt;BR /&gt;ethers:         files&lt;BR /&gt;netmasks:       files&lt;BR /&gt;netgroup:       files nis&lt;BR /&gt;publickey:      files&lt;BR /&gt;&lt;BR /&gt;bootparams:     files&lt;BR /&gt;automount:      files nis&lt;BR /&gt;aliases:        files&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Mar 2007 18:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967206#M65816</guid>
      <dc:creator>Wilfred Chau_1</dc:creator>
      <dc:date>2007-03-22T18:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: DNS</title>
      <link>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967207#M65817</link>
      <description>Wilfred,&lt;BR /&gt;&lt;BR /&gt;as stated by others: on LINUX, nslookup and hosts do not read the nsswitch.conf file.&lt;BR /&gt;I know on HPUX nslookup (there is no 'hosts' command on HPUX) does follow the nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt;But not on Linux. And also not on Solaris.&lt;BR /&gt;That's the way it is?!&lt;BR /&gt;&lt;BR /&gt;JP.</description>
      <pubDate>Fri, 23 Mar 2007 09:05:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/dns/m-p/3967207#M65817</guid>
      <dc:creator>Jeroen Peereboom</dc:creator>
      <dc:date>2007-03-23T09:05:00Z</dc:date>
    </item>
  </channel>
</rss>

