<?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: r* commands issue, when using dns in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017210#M544501</link>
    <description>Take a look at page 66 of the guide to TOUR 1.0 (&lt;A href="http://docs.hp.com/hpux/pdf/5187-4159.pdf)," target="_blank"&gt;http://docs.hp.com/hpux/pdf/5187-4159.pdf),&lt;/A&gt; which mentions that there have been changes to the default resolver policy used by r* commands to support IPv6 in 11.23.&lt;BR /&gt;&lt;BR /&gt;There is also a note that you should set the ipnodes entry if you have also set the hosts entry, even if you do not use IPv6.</description>
    <pubDate>Thu, 07 Dec 2006 09:43:13 GMT</pubDate>
    <dc:creator>Andrew C Fieldsend</dc:creator>
    <dc:date>2006-12-07T09:43:13Z</dc:date>
    <item>
      <title>r* commands issue, when using dns</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017205#M544496</link>
      <description>pls, take a look on this:&lt;BR /&gt;sergey@alfa1:~$ time rcp login.sql freebsd:&lt;BR /&gt;&lt;BR /&gt;real    0m53.560s&lt;BR /&gt;user    0m0.010s&lt;BR /&gt;sys     0m0.020s&lt;BR /&gt;sergey@alfa1:~$ time rcp login.sql freebsd.f.q.d.n:&lt;BR /&gt;&lt;BR /&gt;real    0m0.240s&lt;BR /&gt;user    0m0.000s&lt;BR /&gt;sys     0m0.010s&lt;BR /&gt;sergey@alfa1:~$ host freebsd&lt;BR /&gt;freebsd.f.q.d.n has address 10.1.1.140&lt;BR /&gt;&lt;BR /&gt;if i remove /etc/resolv.conf and add a line to /etc/hosts:&lt;BR /&gt;sergey@alfa1:~$ sudo mv /etc/resolv.{conf,bak}&lt;BR /&gt;sergey@alfa1:~$ sudo sh -c "echo \"10.1.1.140 freebsd.f.g.d.n freebsd\" &amp;gt;&amp;gt; /etc/hosts"&lt;BR /&gt;sergey@alfa1:~$ time rcp login.sql freebsd:&lt;BR /&gt;&lt;BR /&gt;real    0m0.200s&lt;BR /&gt;user    0m0.010s&lt;BR /&gt;sys     0m0.000s&lt;BR /&gt;&lt;BR /&gt;hostname 'freebsd' resolves very quickly:&lt;BR /&gt;sergey@alfa1:~$ time nslookup freebsd&lt;BR /&gt;Using /etc/hosts on:  alfa1&lt;BR /&gt;&lt;BR /&gt;looking up FILES&lt;BR /&gt;Trying DNS&lt;BR /&gt;Name:    freebsd.f.q.d.n&lt;BR /&gt;Address:  10.1.1.140&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;real    0m0.010s&lt;BR /&gt;user    0m0.000s&lt;BR /&gt;sys     0m0.000s&lt;BR /&gt;&lt;BR /&gt;i do not understand this behavior of rcp. pls, help.&lt;BR /&gt;&lt;BR /&gt;PS: alfa1 is a HP-UX 11.23 on itanium &lt;BR /&gt;and freebsd is a simple FreeBSD 6.1-RELEASE on i386.</description>
      <pubDate>Wed, 06 Dec 2006 04:50:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017205#M544496</guid>
      <dc:creator>Sergey Akifiev_1</dc:creator>
      <dc:date>2006-12-06T04:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: r* commands issue, when using dns</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017206#M544497</link>
      <description>The delay is not part of rcp (or telnet, etc), it is due to misconfiguration in your DNS servers. It is quite common for Windows-based DNS servers to not include reverse DNS entries or to handle hostname plus FQDN names. Therefore, HP-UX resolver code will timeout waiting for each DNS server listed in /etc/resolv.conf (about 20 seconds each) before giving up and returning to the program (rcp).&lt;BR /&gt; &lt;BR /&gt;Start by editing /etc/nsswitch.conf and editing the hosts entry to look 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;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;(this assumes that you are just using DNS for hostname resolution). Then to verify the DNS issues, use nslookup both ways:&lt;BR /&gt; &lt;BR /&gt;nslookup freebsd.f.q.d.n&lt;BR /&gt;nslookup freebsd&lt;BR /&gt;nslookup 10.1.1.140&lt;BR /&gt; &lt;BR /&gt;All should complete instantly -- if not, your DNS server is misconfigured. Also test with nsquery as in:&lt;BR /&gt; &lt;BR /&gt;nsquery hosts freebsd&lt;BR /&gt;nsquery hosts freebsd.f.q.d.n&lt;BR /&gt;nsquery hosts 10.1.1.140&lt;BR /&gt; &lt;BR /&gt;If you need an immediate fix, just add the freebsd entry to /etc/hosts so the search will skip DNS.</description>
      <pubDate>Wed, 06 Dec 2006 08:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017206#M544497</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-12-06T08:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: r* commands issue, when using dns</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017207#M544498</link>
      <description>as i stated in my request, DNS is set up correctly, have both forward and reverse records about that host. i've checked this in first place. &lt;BR /&gt;didn't you noted, that using fqdn of host make things better? imho, it is also an evidence, that dns setup correctly.&lt;BR /&gt;&lt;BR /&gt;sergey@alfa1:~$ time nslookup 10.1.1.140&lt;BR /&gt;Using /etc/hosts on:  alfa1&lt;BR /&gt;&lt;BR /&gt;looking up FILES&lt;BR /&gt;Trying DNS&lt;BR /&gt;Name:    freebsd.f.q.d.n&lt;BR /&gt;Address:  10.1.1.140&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;real    0m0.030s&lt;BR /&gt;user    0m0.000s&lt;BR /&gt;sys     0m0.010s&lt;BR /&gt;&lt;BR /&gt;PS also, adding a record to /etc/hosts with configured resolver didn't help either.</description>
      <pubDate>Wed, 06 Dec 2006 08:49:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017207#M544498</guid>
      <dc:creator>Sergey Akifiev_1</dc:creator>
      <dc:date>2006-12-06T08:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: r* commands issue, when using dns</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017208#M544499</link>
      <description>You might want to try using nslookup in debug mode to see what it is doing when it takes a long time to respond - my guess is it's doing multiple lookups for some reason, possibly to determine the correct FQDN, when it hasn't been given it directly.&lt;BR /&gt;&lt;BR /&gt;Run nslookup in interactive mode (with no arguments). Type "set d2" to turn on debug mode, and try your lookups - you should get a dump of every DNS request and response.</description>
      <pubDate>Thu, 07 Dec 2006 06:55:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017208#M544499</guid>
      <dc:creator>Andrew C Fieldsend</dc:creator>
      <dc:date>2006-12-07T06:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: r* commands issue, when using dns</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017209#M544500</link>
      <description>once again: names (host-only an fully qualified) are resolved fine. djth forward and reverse.&lt;BR /&gt;scp work quite well, when using fully-qualified host name.&lt;BR /&gt;but when only host name specified - then the trouble comes :-)&lt;BR /&gt;i have done some traffic analysis for network activity on 53 port when rcp starts. and found strange thing: rcp (or libresolv??? ) first queries for AAAA record of hostname (why? i do not have any IPv6 addresses anywhere on systems). and only after all it queries for A record (IPv4 address).&lt;BR /&gt;what the heck is going on?</description>
      <pubDate>Thu, 07 Dec 2006 09:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017209#M544500</guid>
      <dc:creator>Sergey Akifiev_1</dc:creator>
      <dc:date>2006-12-07T09:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: r* commands issue, when using dns</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017210#M544501</link>
      <description>Take a look at page 66 of the guide to TOUR 1.0 (&lt;A href="http://docs.hp.com/hpux/pdf/5187-4159.pdf)," target="_blank"&gt;http://docs.hp.com/hpux/pdf/5187-4159.pdf),&lt;/A&gt; which mentions that there have been changes to the default resolver policy used by r* commands to support IPv6 in 11.23.&lt;BR /&gt;&lt;BR /&gt;There is also a note that you should set the ipnodes entry if you have also set the hosts entry, even if you do not use IPv6.</description>
      <pubDate>Thu, 07 Dec 2006 09:43:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017210#M544501</guid>
      <dc:creator>Andrew C Fieldsend</dc:creator>
      <dc:date>2006-12-07T09:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: r* commands issue, when using dns</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017211#M544502</link>
      <description>Thats it!&lt;BR /&gt;Thanks a lot.</description>
      <pubDate>Thu, 07 Dec 2006 10:33:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017211#M544502</guid>
      <dc:creator>Sergey Akifiev_1</dc:creator>
      <dc:date>2006-12-07T10:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: r* commands issue, when using dns</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017212#M544503</link>
      <description>The solution is, as suggested by A Fieldsend, is to add/change `/etc/nsswitch.conf' file to containg something like `ipnodes:      files [NOTFOUND=return] dns'</description>
      <pubDate>Thu, 07 Dec 2006 10:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/r-commands-issue-when-using-dns/m-p/5017212#M544503</guid>
      <dc:creator>Sergey Akifiev_1</dc:creator>
      <dc:date>2006-12-07T10:37:38Z</dc:date>
    </item>
  </channel>
</rss>

