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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet error

Status
Not open for further replies.

mgrun

IS-IT--Management
Jul 15, 2002
44
IL
HI All

Does anybody know what I must do to get rid of the following error when I telnet:gethostbyaddr: No such file or directory

This is the output of my telnet command

root@lotus ~# telnet red 13782
Trying 172.17.30.1...
Connected to red.
Escape character is '^]'.
gethostbyaddr: No such file or directory
Connection closed by foreign host.

Thanks


Micha Grunberg
Unix Sys-Admin
 
Hi mgrun,
Are you attempting to telnet to red on port 13782?

Try using the command "telnet red" or "telnet red 23"
OR "telnet red.domainname" "telnet red.domainname 23".

hp-ux sys-admin
~jdk

Dare to Dream!
 
Hi

Telnet on port 23 works ok. I have a problem with an application that uses that port

Micha Grunberg
Unix Sys-Admin
 
A colleague offers;
This might be due to the "corrupted" telnet device files. Try to recreated them, see if it helps ..
# cd /
# rm /dev/pty/*
# rm /dev/pts/*
# insf -e
# cd /dev
# insf -d telm
# insf -d tels

~jdk


Dare to Dream!
 
What does insf do?
I am using solaris 8 and I couldnt find that command

Micha

Micha Grunberg
Unix Sys-Admin
 
Dang, it's an hp-ux command "install special files"....

I'm not sure, but they might get recreated at boot.
You could make a backup copy and see if a boot recreates.

~jdk


Dare to Dream!
 
I will try it later, since I cant reboot the machine right now.
I will update you.

Thanks


Micha Grunberg
Unix Sys-Admin
 

Micha,
I think (but I haven't used Solaris in four years) that you have to create an empty file in / to create device files.

Maybe it's called /configure but I'm not sure. Devices won't be created without it. (Unless they changed it).

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Nearly right, Henrik. In fact, Micha needs to create an empty file called reconfigure in the root directory. An alternative is to boot using boot -r from the OK prompt. Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top