- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- r* commands issue, when using dns
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2006 08:50 PM
12-05-2006 08:50 PM
sergey@alfa1:~$ time rcp login.sql freebsd:
real 0m53.560s
user 0m0.010s
sys 0m0.020s
sergey@alfa1:~$ time rcp login.sql freebsd.f.q.d.n:
real 0m0.240s
user 0m0.000s
sys 0m0.010s
sergey@alfa1:~$ host freebsd
freebsd.f.q.d.n has address 10.1.1.140
if i remove /etc/resolv.conf and add a line to /etc/hosts:
sergey@alfa1:~$ sudo mv /etc/resolv.{conf,bak}
sergey@alfa1:~$ sudo sh -c "echo \"10.1.1.140 freebsd.f.g.d.n freebsd\" >> /etc/hosts"
sergey@alfa1:~$ time rcp login.sql freebsd:
real 0m0.200s
user 0m0.010s
sys 0m0.000s
hostname 'freebsd' resolves very quickly:
sergey@alfa1:~$ time nslookup freebsd
Using /etc/hosts on: alfa1
looking up FILES
Trying DNS
Name: freebsd.f.q.d.n
Address: 10.1.1.140
real 0m0.010s
user 0m0.000s
sys 0m0.000s
i do not understand this behavior of rcp. pls, help.
PS: alfa1 is a HP-UX 11.23 on itanium
and freebsd is a simple FreeBSD 6.1-RELEASE on i386.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 12:37 AM
12-06-2006 12:37 AM
Re: r* commands issue, when using dns
Start by editing /etc/nsswitch.conf and editing the hosts entry to look like this:
passwd: files
group: files
hosts: files [NOTFOUND=continue UNAVAIL=continue] dns
networks: files
protocols: files
rpc: files
publickey: files
netgroup: files
automount: files
aliases: files
services: files
(this assumes that you are just using DNS for hostname resolution). Then to verify the DNS issues, use nslookup both ways:
nslookup freebsd.f.q.d.n
nslookup freebsd
nslookup 10.1.1.140
All should complete instantly -- if not, your DNS server is misconfigured. Also test with nsquery as in:
nsquery hosts freebsd
nsquery hosts freebsd.f.q.d.n
nsquery hosts 10.1.1.140
If you need an immediate fix, just add the freebsd entry to /etc/hosts so the search will skip DNS.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 12:49 AM
12-06-2006 12:49 AM
Re: r* commands issue, when using dns
didn't you noted, that using fqdn of host make things better? imho, it is also an evidence, that dns setup correctly.
sergey@alfa1:~$ time nslookup 10.1.1.140
Using /etc/hosts on: alfa1
looking up FILES
Trying DNS
Name: freebsd.f.q.d.n
Address: 10.1.1.140
real 0m0.030s
user 0m0.000s
sys 0m0.010s
PS also, adding a record to /etc/hosts with configured resolver didn't help either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2006 10:55 PM
12-06-2006 10:55 PM
Re: r* commands issue, when using dns
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 01:22 AM
12-07-2006 01:22 AM
Re: r* commands issue, when using dns
scp work quite well, when using fully-qualified host name.
but when only host name specified - then the trouble comes :-)
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).
what the heck is going on?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 01:43 AM
12-07-2006 01:43 AM
SolutionThere 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 02:33 AM
12-07-2006 02:33 AM
Re: r* commands issue, when using dns
Thanks a lot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2006 02:37 AM
12-07-2006 02:37 AM