Operating System - HP-UX
1830052 Members
2166 Online
109998 Solutions
New Discussion

An error message "The host name for your address is not known" when rcp

 
Dewa Negara_1
Advisor

An error message "The host name for your address is not known" when rcp

Hi,
Every day one of my server send a report to a particular remote server using rcp. Recently the report can NOT be sent because of the network problem. I checked on log file, and found an error message "The host name for your address is not known". I tried to rcp and remsh manually, but got the similar error message. Both servers are pingable. Anyone can help me on this. Pls let me know should you need further information. Thanks alot in advance.

Regards,
Dewa

[root@shhp8101:/etc]
# ping etsp0001 -n 3
PING etsp0001.eu.pg.com: 64 byte packets
64 bytes from 192.44.100.201: icmp_seq=0. time=309. ms
64 bytes from 192.44.100.201: icmp_seq=1. time=308. ms
64 bytes from 192.44.100.201: icmp_seq=2. time=307. ms

----etsp0001.eu.pg.com PING Statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (ms) min/avg/max = 307/308/309

[root@shhp8101:/etc]
# rcp -p /tmp/test etsp0001:/tmp
rshd: 0826-826 The host name for your address is not known.

[root@shhp8101:/etc]
# remsh etsp0001 date
rshd: 0826-826 The host name for your address is not known.


log all your daily activities on syslog.log every time...
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: An error message "The host name for your address is not known" when rcp

What happens if you do an:

# nslookup etsp0001
Does this return the correct IP address?

# nslookup 192.44.100.201
Does this return etsp0001?

I kind of sounds like you are having problems with reverse DNS lookup, not being able to resolve the IP address to the name.

You might check your DNS config if you are using DNS.
Dewa Negara_1
Advisor

Re: An error message "The host name for your address is not known" when rcp

Patrick,

Thanks alot. nslookup both hostname and IP gave me the same result. It's a bit strange because I can telnet etsp0001 from shhp8101. Pls see the output below. Thanks alot.

Regards,
Dewa

[root@shhp8101:/opt/soeg/bin]
# nslookup etsp0001
Using /etc/hosts on: shhp8101

looking up FILES
Name: etsp0001.eu.pg.com
Address: 192.44.100.201
Aliases: etsp0001


[root@shhp8101:/opt/soeg/bin]
# nslookup 192.44.100.201
Using /etc/hosts on: shhp8101

looking up FILES
Name: etsp0001.eu.pg.com
Address: 192.44.100.201
Aliases: etsp0001


[root@shhp8101:/opt/soeg/bin]
# telnet etsp0001
Trying...
Connected to etsp0001.eu.pg.com.
Escape character is '^]'.
Local flow control off


telnet (etsp0001)

login:
log all your daily activities on syslog.log every time...
Ravi_8
Honored Contributor

Re: An error message "The host name for your address is not known" when rcp

Hi,

Could you make entry in /etc/hosts file of each machine and if you have /etc/nsswitch.conf file make the host field to look first for file and then dns
never give up
Dewa Negara_1
Advisor

Re: An error message "The host name for your address is not known" when rcp

Hi All,

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 alot for your advice.

Regards,
Dewa
log all your daily activities on syslog.log every time...