- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- telnet : Unknown host
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
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
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
тАО06-26-2003 11:39 AM
тАО06-26-2003 11:39 AM
telnet/rlogin from the same machine to itself fails, but ftp/ping work on HP-UX11i.I have hosts.equiv, .rhosts files set. In /etc/nsswitch.conf for the hosts field i have "files nis" as the lookup.
nslookup
/etc/hosts:
127.0.0.1 localhost loopback
172.23.111.3 biscayne
This works (from biscayne):
biscayne] /etc > ping localhost
PING localhost: 64 byte packets
64 bytes from 127.0.0.1: icmp_seq=0. time=0. ms
64 bytes from 127.0.0.1: icmp_seq=1. time=0. ms
This too works(from biscayne):
[biscayne] /etc > ping biscayne
PING biscayne: 64 byte packets
64 bytes from 172.23.111.3: icmp_seq=0. time=0. ms
64 bytes from 172.23.111.3: icmp_seq=1. time=0. ms
telnet localhost fails (from biscayne)
[biscayne] /etc > telnet localhost
localhost: Unknown host
telnet biscayne from biscayne fails
biscayne] /etc > telnet biscayne
biscayne: Unknown host
..so does rlogin fail from biscayne
[biscayne] /etc > rlogin biscayne
rcmd_af: biscayne: Unknown host
However, if I specify the IP address, it works.
Can anyone help me with this?
Thanks,
Vamsi
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 11:45 AM
тАО06-26-2003 11:45 AM
Re: telnet : Unknown host
hosts: files [NOTFOUND=continue] dns
in your /etc/nsswitch.conf file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 11:47 AM
тАО06-26-2003 11:47 AM
Re: telnet : Unknown host
First question is why are you trying this?
Host file is ok as the ftp proves.
Try and entry in netconf>
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 11:47 AM
тАО06-26-2003 11:47 AM
Re: telnet : Unknown host
First question is why are you trying this?
Host file is ok as the ftp proves.
Try an entry in netconf>
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 11:48 AM
тАО06-26-2003 11:48 AM
Re: telnet : Unknown host
Mouse problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 11:48 AM
тАО06-26-2003 11:48 AM
Re: telnet : Unknown host
What is the content of your /etc/resolv.conf?
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 11:48 AM
тАО06-26-2003 11:48 AM
Re: telnet : Unknown host
#nslookup localhost
#nslookup biscayne
#nslookup 127.0.0.1
#nslookup 172.23.111.3
You might also want to check the permissions on your /etc/hosts file and your /etc/nsswitch.conf file. Both should be readable by owner, group, and world.
-rw-r--r-- /etc/hosts
-rw-r--r-- /etc/nsswitch.conf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 11:52 AM
тАО06-26-2003 11:52 AM
Re: telnet : Unknown host
Use SAM -> Networking -> nsswitch and properly configure it.
Your probably using a default of DNS
In this case, if the loopback is not in the DNS tables gethostbyname() will return nothing.
Same can be true for NIS (but easier to add the loopback/localhost entry)
Simply change your nsswitch.conf file to "continue" to the next method if lookup fails, instead of returning.
Regards,
Shannon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 11:56 AM
тАО06-26-2003 11:56 AM
Re: telnet : Unknown host
For testing purposes, take nis completely out of your nsswitch.conf and try.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 12:26 PM
тАО06-26-2003 12:26 PM
Re: telnet : Unknown host
1. Yes permissions are correct:
[biscayne] /etc > ls -l
-rw-r--r-- hosts
-rw-r--r-- nsswitch.conf
Result: Still fails
2. added hosts: files [NOTFOUND=continue] dns nis
Result: Still fails
3. nslookup localhost
Using /etc/hosts on: biscayne
looking up FILES
Name: localhost
Address: 127.0.0.1
Aliases: loopback
>First question is why are you trying this?
:Because I cannot telnet from this box to any host. To downsize the problem tried to telnet to localhost/hostname
> What is the content of your /etc/resolv.conf?
domain numega.com
nameserver 172.23.96.10
nameserver 10.0.3.14
>For testing purposes, take nis completely out of your nsswitch.conf and try
:Still fails
-----------------------------------------
The same configuration of files ( atleast I think ) exists on couple of other HP systems and all can network fine(telnet, ftp, rlogin, ping) except with biscayne.
Regards,
Vamsi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 12:38 PM
тАО06-26-2003 12:38 PM
Re: telnet : Unknown host
//
>First question is why are you trying this?
:Because I cannot telnet from this box to any host. To downsize the problem tried to telnet to localhost/hostname
//
What error do you get when you try to telnet to this box from other boxes?.
Try looking at /var/adm/syslog/syslog.log (by enabling connection logging by 'inetd -l').
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-26-2003 12:46 PM
тАО06-26-2003 12:46 PM
Re: telnet : Unknown host
Can you post the output of this command:
# nslookup 172.23.96.10
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2003 01:31 AM
тАО06-27-2003 01:31 AM
Re: telnet : Unknown host
is inetd workin properly ?
It is inetd that forks the link for incoming rlogin and telnet...
Have you any strange entry in /etc/inetd.conf or /var/adm/inetd.sec ?
Are the lan cables O.K. ?
HTH,
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2003 04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2003 05:01 AM
тАО06-27-2003 05:01 AM
Re: telnet : Unknown host
But before you do that, use ping and telnet to the IP addresses of remote systems. If they are on the same subnet, all should be OK. If they are across a router and they fail to connect then most likely your routing is incorrect, which may also explain why NIS is not working correctly. You'll have to be able to ping the DNS/NIS servers before name resoltuin will work beyond /etc/hosts.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2003 05:10 AM
тАО06-27-2003 05:10 AM
Re: telnet : Unknown host
I enabled logging and did a telnet from another system. It is fine.
Jun 26 16:46:34 biscayne inetd[5437]: telnet/tcp: Connection from unknown (::ffff:172.23.101.225) at Thu Jun 26 16:46:34 2003
There is no log info when I do telnet localhost.
Regards,
Vamsi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-27-2003 05:41 AM
тАО06-27-2003 05:41 AM
Re: telnet : Unknown host
YES! THIS WORKED. The problem was with the nameserver entry in /etc/resolv.conf. Once I pointed it to a different nameserver, hostnames started getting resolved properly.
Thanks,
Vamsi