Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The host name for your address is not known

Status
Not open for further replies.

ejmilne

Technical User
Apr 23, 2003
37
GB
Hi, I'm trying to rcp to another server, but I keep getting "rshd: 0826-826 The host name for your address is not known".
I've put the hosts in the .rhosts etc, but is this something to do with DNS?
Thanks,
Emma
 
Hi emma

Host address resolution problem does exist in your case.

Did you check /etc/netsvc.conf file?
see the entry :
hosts=local,bind(default)
You have to change this sequence accordingly...primarily..
Then we think about other entities

I think ...u know about the significance of thi file..if not let me know...I will explain in later post


Are you using /etc/hosts or DNS or NIS for hosts vs ip address database

sushveer
IBM certified specialist-p-series AIX5L System Administration
AIX/SOLARIS/WEBSPHERE-MQ/TIVOLI Administrator
 
Hi Sushveer,
I have a netsvc.conf file on the source system and it has:
"hosts=local" only in it.
The target server does not have a netsvc.conf file - should it have one?

We are not using DNS - we use the /etc/host file for IP address resolution...
I've tried doing an NS lookup but it just hangs because we have no nameserver specified in the adapter setup....

Do you know if rcp is possible if you are not using DNS?

Emma



 
Hi

You would need to have `hosts=local,bind` in the netsvc.conf
rcp does work without DNS
Can you ping the remote server?

 
Hi,
Yes, I can ping the remote server with no problem.

Its very strange because I can rcp one way ie: server1 -> server2 but not the reverse ie server2-> server1!

Server 2 has 2 lan cards in it - I am wondering if this has something to do with it, although I have put both IP's in the host files.

Thanks,
Emma
 
hi,

the host in which you enter the command, knows all about
the other. ( translates hostname in ip, using some method)

The target host, receives remote command: it returns the error to the sender.

If you telnet to host2 (the rsh target) and ping host1 (the rsh sender), what answer you receive ?

1) no answer
2) host1 responds
3) host1 responds with host1.yourdomain

The netsvc.conf needs to say which priority server has to use to resolve names

hosts=local,bind,nis

means:

first go in /etc/hosts, if not askto nameserver, if not to YellowPage (nis) domain


If your target host has "hosts=local", it does not use, for
name resolution, DNS neither NIS: put host1 in its /etc/hosts

bye
 
Found this on a site (similar to your problem)

Finally the problem can be solved. This server shhp8101 is using 2 lancards both in the same subnet 155.124.11.0. Both lancards are lan1 (155.124.11.18) and lan0 (155.124.11.22). From netstat -i I got output that most of the packets is using lan1. And alot of packets still queue there. So I just put entry "155.124.11.22 shhp8101" into /etc/hosts on etsp0001, so rcp will be using lan0. It's working well now.





 
Thanks Guys, I'll give it a try,

Emma
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top