<?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: SSH, REMSH, IPv6, resolver, nsswitch issues in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155071#M534722</link>
    <description>((the **N means see footnote.&lt;BR /&gt;))&lt;BR /&gt;&lt;BR /&gt;There doesn't seem to exist a very good solution to this. **1&lt;BR /&gt;&lt;BR /&gt;So, I'm closing the thread.&lt;BR /&gt;&lt;BR /&gt;bv&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;**1&lt;BR /&gt;Long delay when trying ssh shortname_not_in_etc_hosts&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;**************&lt;BR /&gt;Some postmortem thoughts:&lt;BR /&gt;**************&lt;BR /&gt;&lt;BR /&gt;The issue is really with short-name lookups in general, but is exacerbated with the new IPv6 stuff. **2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1) IPv6&lt;BR /&gt;&lt;BR /&gt;SSH can be configured to avoid IPv6 -- good.&lt;BR /&gt;&lt;BR /&gt;REMSH, et al., cannot -- not so good.  But don't really need them if you have SSH, anyway.&lt;BR /&gt;&lt;BR /&gt;However, I ran into the same issue with 'xauth', but did not really follow up on it.&lt;BR /&gt;&lt;BR /&gt;TELNET doesn't even try IPv6.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Probably the best fix here would be to have a system setting that tells the resolver(s) not to try IPv6 AAAA lookups.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) short names&lt;BR /&gt;OTOH, the issue is really only a problem when you use short names instead of FQDNs (or make a mistype in the TLD). **3&lt;BR /&gt;&lt;BR /&gt;So, maybe the resolver option that I proposed would help; viz.:&lt;BR /&gt;&lt;BR /&gt;do not try a DNS lookup on the unmodified name unless it contains at least one dot.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, this brings to mind an admonishment I was given many years ago by a DNS guru. He was of the opinion that the resolver search list was a lame, lazy way to do things that clogged the name servers.&lt;BR /&gt;&lt;BR /&gt;Actually he phrased it very succinctly.&lt;BR /&gt;&lt;BR /&gt;"don't F'n use F'n short names !!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;**2&lt;BR /&gt;Some of the resolver(s) are now coded to try *first* IPv6 AAAA DNS lookups on hostnames. If your hostname does not end with a dot, then the resolver will try the name modified by appending the domain to it. If you do not have IPv6 set up, then your DNS server will send back a 0-answer reply.  The resolver then tries the unmodified name, but still an IPv6 lookup.&lt;BR /&gt;&lt;BR /&gt;When he has cycled thru all the search domains, he will try "normal" IPv4 lookups.&lt;BR /&gt;&lt;BR /&gt;So, when we are not using IPv6 we have a bunch of extraneous IPv6 lookups.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;**3&lt;BR /&gt;The first modified name IPv6 lookup will be fast, because your DNS server will be authoritative for the FQDN and immediately  will send back a 0-answer reply, since you have no IPv6 records in it.&lt;BR /&gt;&lt;BR /&gt;Now, the resolver tries the un-modified name.&lt;BR /&gt;Since your DNS server most likely will *not* be authoritative for the unmodified name (certainly so when it does not contain a dot), it will ultimately be forwarded out to the Internet. In addition, because of timing issues, the resolver will do this several times.&lt;BR /&gt;&lt;BR /&gt;Finally (after a long preceived delay), when all the IPv6 lookups are exhausted, he will do the same thing with IPv4 type A lookups, with another delay !!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The issue here is that the problem is not just a local, long delay. The unmodified, no-dot short-name lookup can ultimately get forwarded out to Internet DNS servers, and that's just not being a good netizen.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 11 Feb 2009 18:46:13 GMT</pubDate>
    <dc:creator>Bob_Vance</dc:creator>
    <dc:date>2009-02-11T18:46:13Z</dc:date>
    <item>
      <title>SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155057#M534708</link>
      <description>Since this is longwinded, I'll ask my questions first,&lt;BR /&gt;then you can read the post:&lt;BR /&gt;&lt;BR /&gt;1) any comments on the following are welcome&lt;BR /&gt;&lt;BR /&gt;2) How can I make REMSH not do a IPv6 lookup&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I've had a resolver problem ever since moving to 11.23 with SSH and REMSH ,&lt;BR /&gt;specifically when using shortname instead of Fully Qualified Domain Name (FQDN). However, there are also issues when using the FQDN.&lt;BR /&gt;&lt;BR /&gt;It manifested as&lt;BR /&gt; a very long delay (usually ~35 secs, sometimes 105)&lt;BR /&gt;before resolving the address and connecting to the target.&lt;BR /&gt;&lt;BR /&gt;((NOTE: I have "fixed" the SSH issue -- see later in the post&lt;BR /&gt;))&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I did a network trace and have discovered a few issues:&lt;BR /&gt;&lt;BR /&gt;****&lt;BR /&gt;1) /etc/nsswitch.conf&lt;BR /&gt;****&lt;BR /&gt;the new SSH, REMSH, and TELNET do not use the same resolver logic that nslookup and ping use.&lt;BR /&gt;Specifically, they ignore /etc/nsswitch.conf.&lt;BR /&gt;&lt;BR /&gt;REGARDLESS of what nsswitch.conf contains,&lt;BR /&gt;their built-in resolver does:&lt;BR /&gt;&lt;BR /&gt;. try DNS first&lt;BR /&gt;if /etc/resolv.conf does not exist or does not have nameserver entries,&lt;BR /&gt;it will try 127.0.0.1 -- 4 times !!&lt;BR /&gt;&lt;BR /&gt;. then files&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ping and nslookup *DO* honor nsswitch&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;****&lt;BR /&gt;2) IPv6 and delay&lt;BR /&gt;****&lt;BR /&gt;# ssh myhost&lt;BR /&gt;&lt;BR /&gt;I discovered that the new SSH and REMSH actually try an IPv6 DNS lookup (type 28=AAAA) first.&lt;BR /&gt;&lt;BR /&gt;If it does not get a hit (i.e., get an AAAA answer), it will go thru all of the resolver's logic of adding domains from /etc/resolv.conf.&lt;BR /&gt;When it exhausts all of those iterations it will finally try a normal IPv4 type A lookup.&lt;BR /&gt;Then they try an IPv4 lookup (type A)&lt;BR /&gt;&lt;BR /&gt;If that's not bad enough, the second name that he tries is the unmodified name, EVEN when it is only a single domain (shortname).  It probably should never try a single word.&lt;BR /&gt;This will cause the request to be forwarded to a DNS server that accesses the Internet and he'll flounder around trying to resolve domain "myHOST", which does not exist.&lt;BR /&gt;&lt;BR /&gt;So for&lt;BR /&gt;# ssh myhost&lt;BR /&gt;the sequence is:&lt;BR /&gt;&lt;BR /&gt;. modifies myhost to myhost.mydom.dom (from the /etc/resolv.conf file)&lt;BR /&gt;. does a AAAA name lookup (ignoring nsswitch) on myhost.mydom.dom&lt;BR /&gt;. gets a reply with 0 answers&lt;BR /&gt;. tries AAAA lookup on myhost, which causes the nameserver to go out and look for top domain&lt;BR /&gt;. it does this 4 times&lt;BR /&gt;. finally it tries a normal type A lookup on myhost.mydom.dom, which works&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyway that's the source of the delay.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;REMSH does the same thing.&lt;BR /&gt;&lt;BR /&gt;TELNET does not try IPv6&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;****&lt;BR /&gt;3) with FQDN&lt;BR /&gt;****&lt;BR /&gt;A litle summary, even with a FQDN&lt;BR /&gt;&lt;BR /&gt;# grep hosts /etc/nsswitch.conf&lt;BR /&gt;hosts: files&lt;BR /&gt;&lt;BR /&gt;# cat /etc/resolv.conf&lt;BR /&gt;cat: No such file or directory&lt;BR /&gt;&lt;BR /&gt;# ssh FQDN myHOST&lt;BR /&gt;&lt;BR /&gt;IPv4 only&lt;BR /&gt; Did  *8*  TYPE A  queries to 127.0.0.1 DNS&lt;BR /&gt;IPV6 also&lt;BR /&gt; Did  *8*  TYPE AAAAA  queries to 127.0.0.1 DNS&lt;BR /&gt; Did  *8*  TYPE A  queries to 127.0.0.1 DNS&lt;BR /&gt;&lt;BR /&gt;REMSH always does IPv6 first&lt;BR /&gt; Did  *8*  TYPE AAAAA  queries to 127.0.0.1 DNS&lt;BR /&gt; Did  *8*  TYPE A  queries to 127.0.0.1 DNS&lt;BR /&gt;&lt;BR /&gt;TELNET always does only IPv4&lt;BR /&gt; Did  *8*  TYPE A  queries to 127.0.0.1 DNS&lt;BR /&gt;&lt;BR /&gt;ping &amp;amp; nslookup&lt;BR /&gt; use ONLY /etc/hosts&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;****&lt;BR /&gt;4)  SSH "fix"&lt;BR /&gt;****&lt;BR /&gt;&lt;BR /&gt;I was able to get around the delay problem with SSH client, by modifying its config file, /opt/ssh/etc/ssh_config.&lt;BR /&gt;In there,&lt;BR /&gt;  AddressFamily&lt;BR /&gt;defaults to "any", meaing IPv6 and IPv4&lt;BR /&gt;By forcing IPv4 only, by setting&lt;BR /&gt; AddressFamily inet&lt;BR /&gt;he gets a hit on the first modified name lookup and there is no delay.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;tks&lt;BR /&gt;bv&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Feb 2009 18:05:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155057#M534708</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2009-02-05T18:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155058#M534709</link>
      <description>In case you want to try this yourself, here is the way I did the trace:&lt;BR /&gt;&lt;BR /&gt;## T=IPv4short; nettl -traceon 0x30800000 -e ns_ls_ip | tee /tmp/raw$T \&lt;BR /&gt;|netfmt -F -N -n -l -c /tmp/nf1 \&lt;BR /&gt;| tee /tmp/fmt$T&lt;BR /&gt;&lt;BR /&gt;## cat /tmp/nf1&lt;BR /&gt;filter udp_sport 53&lt;BR /&gt;filter udp_dport 53&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why the 'tee' commands?&lt;BR /&gt;&lt;BR /&gt;'tee'ing to the raw file allows me to do a different filter later if I want, typically just removing the "-l" to get detailed hex data.&lt;BR /&gt;&lt;BR /&gt;'tee'ing the format file allows me to change the T variable and keep different outputs for later perusal.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I run the 'nettl' command on both the local server where I'm executing the&lt;BR /&gt;# ssh myHOST&lt;BR /&gt;to see its DNS requests&lt;BR /&gt;*and* on the DNS server being used out of /etc/resolv.conf, to see how it is handling the requests, specifically the forwarding.&lt;BR /&gt;&lt;BR /&gt;tks&lt;BR /&gt;bv</description>
      <pubDate>Thu, 05 Feb 2009 18:56:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155058#M534709</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2009-02-05T18:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155059#M534710</link>
      <description>BTW, a very simple way to test whether nsswitch is being used or not is:&lt;BR /&gt;&lt;BR /&gt;1) set nsswitch.conf to only files:&lt;BR /&gt;&lt;BR /&gt;## grep hosts /etc/nsswitch.conf&lt;BR /&gt;hosts:  files&lt;BR /&gt;&lt;BR /&gt;or more safely to files dns :&lt;BR /&gt;&lt;BR /&gt;## grep hosts /etc/nsswitch.conf&lt;BR /&gt;hosts:  files [NOTFOUND=continue TRYAGAIN=continue UNAVAIL=continue] dns&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) Add an entry to /etc/hosts with an invalid IP address that overrides the correct IP address in DNS:&lt;BR /&gt;&lt;BR /&gt;daytona3 ## cat /etc/resolv.conf&lt;BR /&gt;search testtrack&lt;BR /&gt;nameserver 10.1.0.99&lt;BR /&gt;&lt;BR /&gt;## dig daytona3console.testtrack @10.1.0.99&lt;BR /&gt;;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1&lt;BR /&gt;daytona3console.testtrack. 3600 IN      A       192.168.11.153&lt;BR /&gt;&lt;BR /&gt;## nslookup daytona3console.testtrack&lt;BR /&gt;Using /etc/hosts on:  daytona3&lt;BR /&gt;looking up FILES&lt;BR /&gt;Name:    daytona3console.testtrack&lt;BR /&gt;Address:  2.3.4.5&lt;BR /&gt;&lt;BR /&gt;So, /etc/hosts has bogus 2.3.4.5 and DNS has correct 192.168.11.153&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3) do the ssh:&lt;BR /&gt;&lt;BR /&gt;## ssh daytona3console.testtrack&lt;BR /&gt;Received disconnect from 192.168.11.153: 11:  SSH Disabled&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So you can see that it tried the correct DNS IP, not /etc/hosts entry.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Thu, 05 Feb 2009 22:25:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155059#M534710</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2009-02-05T22:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155060#M534711</link>
      <description>Hello Bob,&lt;BR /&gt;&lt;BR /&gt;All HP-UX 11.31 and 11.23 servers that I&lt;BR /&gt;just tested were fine for SSH.&lt;BR /&gt;&lt;BR /&gt;I do not have IPv6 networks though.&lt;BR /&gt;&lt;BR /&gt;Also, I could test REMSH because the last&lt;BR /&gt;time I used it was about 10-15 years ago.&lt;BR /&gt;The environments I work in do not allow&lt;BR /&gt;plain-text protocols.&lt;BR /&gt;&lt;BR /&gt;With SSH on HP-UX 11.23 and 11.31, I easily&lt;BR /&gt;confirmed that it used "files" before "dns"&lt;BR /&gt;if nsswitch.conf had line like (or similar):&lt;BR /&gt;&lt;BR /&gt;hosts: files dns&lt;BR /&gt;&lt;BR /&gt;In regards to by-passing IPv6, couple of&lt;BR /&gt;options:&lt;BR /&gt;&lt;BR /&gt;a) Use this flag:&lt;BR /&gt;&lt;BR /&gt;ssh -o AddressFamily=inet ...&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;b) Set /opt/ssh/etc/sshd_config (or&lt;BR /&gt;wherever your SSH installation resides):&lt;BR /&gt;&lt;BR /&gt;AddressFamily inet&lt;BR /&gt;&lt;BR /&gt;... which forces IPv4 to be used.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Thu, 05 Feb 2009 23:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155060#M534711</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-02-05T23:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155061#M534712</link>
      <description>Thanks, VK2COT.&lt;BR /&gt;&lt;BR /&gt;I mentioned in my post that I resolved the IPv6 issue for SSH by modifying ssh_config.&lt;BR /&gt;&lt;BR /&gt;However, I'm intrigued that your nsswitch.conf worked.  You saw the text from my testing in the post just prior to yours, right?&lt;BR /&gt;&lt;BR /&gt;I have tested 2 different sets of systems:&lt;BR /&gt;my own 3 test systems&lt;BR /&gt;and a customer's 6 servers.&lt;BR /&gt;&lt;BR /&gt;My test systems were installed from scratch to 11.23, while the customer systems were upgraded from 11.11.&lt;BR /&gt;&lt;BR /&gt;Both my test systems and the customer's systems behave the same way, bypassing  nsswitch.conf !!!&lt;BR /&gt;&lt;BR /&gt;There are no permission problems on nsswitch.conf, plus I tested as root.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is very curious!!!&lt;BR /&gt;&lt;BR /&gt;I'm wondering if some patching may be required.  They haven't been patched since last May.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Thu, 05 Feb 2009 23:59:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155061#M534712</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2009-02-05T23:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155062#M534713</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I wonder if you could run my Perl script and&lt;BR /&gt;save results into text file and see if some&lt;BR /&gt;unusual problem is hurting you:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl/.txt" target="_blank"&gt;http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl/.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;By the way, older versions of OpenSSH had&lt;BR /&gt;that bug - for example, Name Resolving bug in OpenSSH 3.0.2...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Fri, 06 Feb 2009 08:21:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155062#M534713</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-02-06T08:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155063#M534714</link>
      <description>My typing is bad. The URL is:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt" target="_blank"&gt;http://www.circlingcycle.com.au/Unix-sources/HP-UX-check-OAT.pl.txt&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Just to be safe, check /etc/hosts for&lt;BR /&gt;corruption or some hidden (unprintable)&lt;BR /&gt;characters.&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Fri, 06 Feb 2009 08:27:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155063#M534714</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-02-06T08:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155064#M534715</link>
      <description>OK&lt;BR /&gt;I found the resolver/nsswitch culprit and another workaround.&lt;BR /&gt;One word:&lt;BR /&gt;&lt;BR /&gt;... ipnodes&lt;BR /&gt;&lt;BR /&gt;As usual, finding the problem explains everything ;&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyway adding "ipnodes" to /etc/nsswitch.conf&lt;BR /&gt;&lt;BR /&gt;daytona3 ## grep -e hosts -e ipnodes /etc/nsswitch.conf&lt;BR /&gt;...hosts:          files [NOTFOUND=continue UNAVAIL=continue] dns&lt;BR /&gt;...ipnodes:          files [NOTFOUND=continue UNAVAIL=continue] dns&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;fixed the resolver/nsswitch not looking at /etc/hosts problem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Somehow the system is configured thinking that it supports and should use IPv6.  Of course, we noticed this in the network trace where it tried type AAAA name lookups first.&lt;BR /&gt;&lt;BR /&gt;Just now, in reading about IPv6 configuration, I discovered that there is a *separate* entry in nsswitch.conf, "ipnodes", to use for IPv6, instead of "hosts".  I have not played with IPv6 and was not aware of that.&lt;BR /&gt;&lt;BR /&gt;So, I had no "ipnodes" entry in my nsswitch.conf !!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I re-read nsswitch.conf man page and it documents "ipnodes", but makes no mention of what it is for.&lt;BR /&gt;&lt;BR /&gt;But, it cleary states&lt;BR /&gt;&lt;BR /&gt;...      The library functions contain compiled-in default entries that are&lt;BR /&gt;...      used if the appropriate entry in nsswitch.conf is absent or&lt;BR /&gt;...      syntactically incorrect. The entries are as follows:&lt;BR /&gt;&lt;BR /&gt;......         hosts:          dns [NOTFOUND=return] nis [NOTFOUND=return] files&lt;BR /&gt;......         ipnodes:        dns [NOTFOUND = return] files&lt;BR /&gt;......&lt;BR /&gt;&lt;BR /&gt;Since I had no "ipnodes" entry, that explains exactly what I "discovered" in my testing and trace analysis: dns, then files ;&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Why did I not have "ipnodes" ?&lt;BR /&gt;The sample files that HP provides *do* have "ipnodes" defined in them, as you would expect.&lt;BR /&gt;&lt;BR /&gt;Presumably, the upgrade from 11.11 to 11.23 simply kept the original version of the file.&lt;BR /&gt;The release notes for the upgrade probably mentioned the IPv6/ipnodes thingy and I must have overlooked it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Fri, 06 Feb 2009 15:14:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155064#M534715</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2009-02-06T15:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155065#M534716</link>
      <description>However, simply fixing nsswitch&lt;BR /&gt;still leaves two issues:&lt;BR /&gt;&lt;BR /&gt;1) How to disable IPv6 altogether, so REMSH doesn't try IPv6 lookup.&lt;BR /&gt;&lt;BR /&gt;Why? Because the resolver does the following when using DNS:&lt;BR /&gt;&lt;BR /&gt;... try IPv6 lookup on modified shortname (shortname.domain)&lt;BR /&gt;... since we don't have IPv6 DNS, it gets 0 answers.&lt;BR /&gt;... then it tries the UNmodified shortname !!-- this amounts to a lookup on a non-existent Top-Level Domain and causes forwarding, retries and a long delay before he gives up on IPv6.&lt;BR /&gt;... finally it tries IPv4 lookup on modified shortname and it will get a hit here.&lt;BR /&gt;&lt;BR /&gt;So, the IPv6 lookup is causing a long delay when your DNS does not support it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) Thus, it would be nice to be able to option the resolver not to try the unmodified name when it contains 0 dots.  This would prevent hunting all over the place for a non-existent TLD.&lt;BR /&gt;E.g.,&lt;BR /&gt;options mindots:1&lt;BR /&gt;&lt;BR /&gt;option ndots:n&lt;BR /&gt;is sorta the obverse of this&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Fri, 06 Feb 2009 15:15:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155065#M534716</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2009-02-06T15:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155066#M534717</link>
      <description>Chk if this helps&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=882565" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=882565&lt;/A&gt;</description>
      <pubDate>Fri, 06 Feb 2009 17:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155066#M534717</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-02-06T17:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155067#M534718</link>
      <description>Oops.. you already know :)&lt;BR /&gt;But this is very interested,,</description>
      <pubDate>Fri, 06 Feb 2009 17:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155067#M534718</guid>
      <dc:creator>Avinash20</dc:creator>
      <dc:date>2009-02-06T17:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155068#M534719</link>
      <description>It should be emphasized that&lt;BR /&gt;"ipnodes" in nsswitch does&lt;BR /&gt;NOT *prevent* IPv6 lookups.&lt;BR /&gt;&lt;BR /&gt;All it does is to allow the resolver to correctly use "files" first when you have:&lt;BR /&gt;&lt;BR /&gt;ipnodes: files  dns&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As I mentioned previously,&lt;BR /&gt;to see this, simply do a&lt;BR /&gt;# remsh SHORTNAME_not_in_hosts_but_in_DNS&lt;BR /&gt;&lt;BR /&gt;it will :&lt;BR /&gt;&lt;BR /&gt;. try /etc/hosts&lt;BR /&gt;&lt;BR /&gt;. not find it&lt;BR /&gt;&lt;BR /&gt;. try IPv6 DNS lookup on  SHORTNAME_not_in_hosts_but_in_dns.SEARCH_DOMAIN&lt;BR /&gt;&lt;BR /&gt;. get a reply from your DNS with 0 answers (because your DNS is not supporting IPv6 AAAA records)&lt;BR /&gt;&lt;BR /&gt;. treat this as a no-hit&lt;BR /&gt;&lt;BR /&gt;. and then try IPv6 lookup on UNMODIFIED SHORTNAME_not_in_hosts_but_in_DNS&lt;BR /&gt;!!&lt;BR /&gt;&lt;BR /&gt;. this is essentially a non-existent TLD that will be forwarded and retried causing a large delay&lt;BR /&gt;&lt;BR /&gt;. finally give up on IPv6&lt;BR /&gt;&lt;BR /&gt;. try *IPv4* DNS lookup on  SHORTNAME_not_in_hosts_but_in_dns.SEARCH_DOMAIN&lt;BR /&gt;&lt;BR /&gt;. get correct answer&lt;BR /&gt;&lt;BR /&gt;. and go Ahhhhh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can turn off IPv6 lookup for SSH in ssh_config via:&lt;BR /&gt;/opt/ssh/etc/ssh_config :&lt;BR /&gt;#   AddressFamily any&lt;BR /&gt;   AddressFamily inet&lt;BR /&gt;&lt;BR /&gt;I have not yet found how to stop REMSH from doing it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv</description>
      <pubDate>Fri, 06 Feb 2009 19:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155068#M534719</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2009-02-06T19:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155069#M534720</link>
      <description>Hello Bob,&lt;BR /&gt;&lt;BR /&gt;Aha, famous "missing ipnodes" issue.&lt;BR /&gt;&lt;BR /&gt;It is actually one of my 600-odd tests for&lt;BR /&gt;HP-UX in the script I listed before. &lt;BR /&gt;&lt;BR /&gt;As far as remsh is concerned, I sincerely&lt;BR /&gt;suggest - stop using it. It is primitive and&lt;BR /&gt;insecure :) You already have ssh, so&lt;BR /&gt;migrate your scripts to use it...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Fri, 06 Feb 2009 20:36:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155069#M534720</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-02-06T20:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155070#M534721</link>
      <description>I was just about to use your script when I happened on ipnodes for myself.  I probably could have saved myself a couple hours research had I used it -- but it wouldn't have been as much fun ;&amp;gt;)&lt;BR /&gt;&lt;BR /&gt;vis-a-vis remsh, we of course use SSH. I just used it to see if it behaved differently than SSH for this problem.&lt;BR /&gt;But now it kinda annoys me that I can make SSH not use IPv6, while I cannot do the same for the R-utils =:|&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bv&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2009 20:55:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155070#M534721</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2009-02-06T20:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: SSH, REMSH, IPv6, resolver, nsswitch issues</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155071#M534722</link>
      <description>((the **N means see footnote.&lt;BR /&gt;))&lt;BR /&gt;&lt;BR /&gt;There doesn't seem to exist a very good solution to this. **1&lt;BR /&gt;&lt;BR /&gt;So, I'm closing the thread.&lt;BR /&gt;&lt;BR /&gt;bv&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;**1&lt;BR /&gt;Long delay when trying ssh shortname_not_in_etc_hosts&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;**************&lt;BR /&gt;Some postmortem thoughts:&lt;BR /&gt;**************&lt;BR /&gt;&lt;BR /&gt;The issue is really with short-name lookups in general, but is exacerbated with the new IPv6 stuff. **2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1) IPv6&lt;BR /&gt;&lt;BR /&gt;SSH can be configured to avoid IPv6 -- good.&lt;BR /&gt;&lt;BR /&gt;REMSH, et al., cannot -- not so good.  But don't really need them if you have SSH, anyway.&lt;BR /&gt;&lt;BR /&gt;However, I ran into the same issue with 'xauth', but did not really follow up on it.&lt;BR /&gt;&lt;BR /&gt;TELNET doesn't even try IPv6.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Probably the best fix here would be to have a system setting that tells the resolver(s) not to try IPv6 AAAA lookups.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2) short names&lt;BR /&gt;OTOH, the issue is really only a problem when you use short names instead of FQDNs (or make a mistype in the TLD). **3&lt;BR /&gt;&lt;BR /&gt;So, maybe the resolver option that I proposed would help; viz.:&lt;BR /&gt;&lt;BR /&gt;do not try a DNS lookup on the unmodified name unless it contains at least one dot.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;However, this brings to mind an admonishment I was given many years ago by a DNS guru. He was of the opinion that the resolver search list was a lame, lazy way to do things that clogged the name servers.&lt;BR /&gt;&lt;BR /&gt;Actually he phrased it very succinctly.&lt;BR /&gt;&lt;BR /&gt;"don't F'n use F'n short names !!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;**2&lt;BR /&gt;Some of the resolver(s) are now coded to try *first* IPv6 AAAA DNS lookups on hostnames. If your hostname does not end with a dot, then the resolver will try the name modified by appending the domain to it. If you do not have IPv6 set up, then your DNS server will send back a 0-answer reply.  The resolver then tries the unmodified name, but still an IPv6 lookup.&lt;BR /&gt;&lt;BR /&gt;When he has cycled thru all the search domains, he will try "normal" IPv4 lookups.&lt;BR /&gt;&lt;BR /&gt;So, when we are not using IPv6 we have a bunch of extraneous IPv6 lookups.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;**3&lt;BR /&gt;The first modified name IPv6 lookup will be fast, because your DNS server will be authoritative for the FQDN and immediately  will send back a 0-answer reply, since you have no IPv6 records in it.&lt;BR /&gt;&lt;BR /&gt;Now, the resolver tries the un-modified name.&lt;BR /&gt;Since your DNS server most likely will *not* be authoritative for the unmodified name (certainly so when it does not contain a dot), it will ultimately be forwarded out to the Internet. In addition, because of timing issues, the resolver will do this several times.&lt;BR /&gt;&lt;BR /&gt;Finally (after a long preceived delay), when all the IPv6 lookups are exhausted, he will do the same thing with IPv4 type A lookups, with another delay !!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The issue here is that the problem is not just a local, long delay. The unmodified, no-dot short-name lookup can ultimately get forwarded out to Internet DNS servers, and that's just not being a good netizen.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 11 Feb 2009 18:46:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-remsh-ipv6-resolver-nsswitch-issues/m-p/5155071#M534722</guid>
      <dc:creator>Bob_Vance</dc:creator>
      <dc:date>2009-02-11T18:46:13Z</dc:date>
    </item>
  </channel>
</rss>

