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!

telnet and other connect weirdness

Status
Not open for further replies.

dwcasey

MIS
Oct 31, 2002
179
US
Normally, when I telnet to one of our boxes, I'll see:

telnet (server02)

login:

But on one particular server, I see:

telnet (-s)

login:

And, when testing mailing messages, I see the -s as the hostname the message is coming from. What gives?
 
What is the hostname for this system (find out by using 'lsattr -El inet0')?

My first thought is that 'hostname -s' is normally used to display the hostname in short form, did someone mistakenly set the hostname to be -s?

 
hi,
what does hostname return for that server ?
how is telnetd started ( check /etc/inetd.conf)
 
sector, you guessed it. I missed that at first because uname -n returned the correct name.

We typed hostname and the correct name and we're o.k. now.

What threw me is that uname still showed the right name. My guess is that when you use a smitty tcpip to change the host name, it uses the mktcpip command which must touch the ODM which I'm assuming that is where uname is getting it's information.

Thanks, hope I didnt' waste anyone's time :)
 
dwcasey - Yes, there are effectively 2 hostnames. I use hostname and sysname to differentiate between the 2.

hostname = the hostname attribute defined to inet0.
sysname = the system name defined by using uname -S.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top