<?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: Strange resolv.conf behaviour in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124263#M56571</link>
    <description>I had a very similar issue after moving to HPUX 11.23 - 30 seconds delay on shortnames.&lt;BR /&gt;This ocurred with both version 4.7 and the latest version 5.10  of SSH.&lt;BR /&gt;&lt;BR /&gt;I did network tracing and concluded that SSH and REMSH do not even use nsswitch.  They appear to have a built-in resolver that is hard-coded to use this order:&lt;BR /&gt;. dns&lt;BR /&gt;. files&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please see my post and fix for SSH at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1233870592210+28353475&amp;amp;threadId=1311413" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1233870592210+28353475&amp;amp;threadId=1311413&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;tks&lt;BR /&gt;bv</description>
    <pubDate>Thu, 05 Feb 2009 21:56:24 GMT</pubDate>
    <dc:creator>Bob_Vance</dc:creator>
    <dc:date>2009-02-05T21:56:24Z</dc:date>
    <item>
      <title>Strange resolv.conf behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124257#M56565</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have/had a machine where ssh and traceroute were taking about 30 seconds to respond on the shortname, but responding immediately on the fully qualified name. telnet and ftp worked straight off. nslookup worked fine on all hostnames (long and short) and on ip addresses.&lt;BR /&gt;&lt;BR /&gt;I have tracked this down to an old nameserver entry in the resolv.conf. Now I thought that it would pick the top name server and lookup on that first, then move to the next etc.&lt;BR /&gt;&lt;BR /&gt;My resolv.conf had:&lt;BR /&gt;domain domain.com&lt;BR /&gt;search domain.com other.com etc.com&lt;BR /&gt;nameserver new_IP&lt;BR /&gt;nameserver old_IP&lt;BR /&gt;&lt;BR /&gt;I have removed the last (old_IP) entry and ssh responds immediately. I guess the lookup was timing out looking for the old nameserver which has been decomissioned. Should it even look for it? I dont understand why it even looked at the 2nd nameserver? &lt;BR /&gt;&lt;BR /&gt;All other protocols must have only used the 1st nameserver. Is this some sort of security built in to ssh?&lt;BR /&gt;&lt;BR /&gt;Anyone care to comment?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Mark&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Aug 2008 12:43:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124257#M56565</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2008-08-11T12:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Strange resolv.conf behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124258#M56566</link>
      <description>What is your nsswitch.conf telling you?&lt;BR /&gt;&lt;BR /&gt;DNS first, then hosts?</description>
      <pubDate>Mon, 11 Aug 2008 12:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124258#M56566</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2008-08-11T12:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Strange resolv.conf behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124259#M56567</link>
      <description>There is no nsswitch.conf&lt;BR /&gt;&lt;BR /&gt;I did create one at one point and add some entries to /etc/hosts, and all started working fine, so this led me to think it was a DNS issue so I removed it again to continue my investigation.&lt;BR /&gt;&lt;BR /&gt;Like I said it is all working fine now the dead nameserver entry has been removed. I was just wondering why the 2nd entry was causing this to happen.</description>
      <pubDate>Mon, 11 Aug 2008 12:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124259#M56567</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2008-08-11T12:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Strange resolv.conf behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124260#M56568</link>
      <description>I came across this text from patch PHNE_35730&lt;BR /&gt;&lt;BR /&gt;The netstat command seems to hang while  resolving the network or host addresses to names, if the nameserver directive in the /etc/resolv.conf file points to an invalid DNS server&lt;BR /&gt;&lt;BR /&gt;This certainly fits your problem but the patch is for 11.00 and don't know if it matches your case. Patch PHNE_27063 is the equivalent patch for 11.11 with the same text in it.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Aug 2008 20:19:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124260#M56568</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2008-08-14T20:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Strange resolv.conf behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124261#M56569</link>
      <description>&amp;gt; no nsswitch.conf&lt;BR /&gt; &lt;BR /&gt;Not a good idea at all. What this means is your entire machine's network activity is dependent on another system (DNS). And as you have seen, a dead or unreachable DNS server will cause a 30 second delay to try the next one. Because of this, I always create the nsswitch.conf file and specify files, then DNS, like this:&lt;BR /&gt; &lt;BR /&gt;passwd:       files&lt;BR /&gt;group:        files&lt;BR /&gt;hosts:        files [NOTFOUND=continue UNAVAIL=continue] dns &lt;BR /&gt;ipnodes:      files [NOTFOUND=return] dns&lt;BR /&gt;networks:     files&lt;BR /&gt;protocols:    files&lt;BR /&gt;rpc:          files&lt;BR /&gt;publickey:    files&lt;BR /&gt;netgroup:     files&lt;BR /&gt;automount:    files &lt;BR /&gt;aliases:      files &lt;BR /&gt;services:     files&lt;BR /&gt; &lt;BR /&gt;Then you put production system hostnames into /etc/hosts where name resolution in infinitely faster. This will also improve performance in commercial backup products. There is no protocol involved here, it is all part of the resolver library (see: man 4 resolver) and how each network service translates hostnames into IP addresses.&lt;BR /&gt; &lt;BR /&gt;A useful tool (in addition to nslookup) is nsquery (man nsquery)</description>
      <pubDate>Thu, 14 Aug 2008 22:54:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124261#M56569</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-08-14T22:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Strange resolv.conf behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124262#M56570</link>
      <description>Thanks Bill, I am a contractor and have been handed the box in this state so I will be adding an nsswitch.conf&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Aug 2008 09:29:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124262#M56570</guid>
      <dc:creator>Mark McDonald_2</dc:creator>
      <dc:date>2008-08-19T09:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Strange resolv.conf behaviour</title>
      <link>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124263#M56571</link>
      <description>I had a very similar issue after moving to HPUX 11.23 - 30 seconds delay on shortnames.&lt;BR /&gt;This ocurred with both version 4.7 and the latest version 5.10  of SSH.&lt;BR /&gt;&lt;BR /&gt;I did network tracing and concluded that SSH and REMSH do not even use nsswitch.  They appear to have a built-in resolver that is hard-coded to use this order:&lt;BR /&gt;. dns&lt;BR /&gt;. files&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please see my post and fix for SSH at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1233870592210+28353475&amp;amp;threadId=1311413" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1233870592210+28353475&amp;amp;threadId=1311413&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;tks&lt;BR /&gt;bv</description>
      <pubDate>Thu, 05 Feb 2009 21:56:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/strange-resolv-conf-behaviour/m-p/5124263#M56571</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2009-02-05T21:56:24Z</dc:date>
    </item>
  </channel>
</rss>

