The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
who -r displays no output maficdan AIX 0 04-21-2008 08:34 AM
Solaris - unknown hostname - how can I change hostname? XNOR UNIX for Dummies Questions & Answers 1 03-29-2007 07:52 PM
Writing to a log file incorrectly heprox Shell Programming and Scripting 5 11-19-2006 10:27 AM
Dual Displays HP-UX 10.20 giftedone HP-UX 0 03-23-2006 12:36 AM
Dual Displays Synbios UNIX for Dummies Questions & Answers 2 10-11-2005 02:46 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 11-23-2007
Registered User
 

Join Date: Nov 2007
Posts: 7
Red face Hostname displays incorrectly

hiii,

in many of the linux machines i have tried this but the result is the same everywhere.

if there are double letters in a hostname then that is displayed as single letter.

e.g. if hostname is set to nepttune then login into the shell will display :

NEPTUNE(admin)@/ [20]
$ hostname
nepttune
NEPTUNE(admin)@/ [21]
$ uname -n
nepttune
NEPTUNE(admin)@/ [22]
$

even if i do ssh from some other then also it will not display correct hostname with double letters repeating but only single letter.
any consequetive double letters are always displayed as single letter.
but if u type the command "hostname" or "uname -n" then it will display the correct hostname.


can anyone plz tell if there is any solution to this ?
Reply With Quote
Forum Sponsor
  #2  
Old 11-23-2007
Registered User
 

Join Date: Nov 2007
Posts: 7
Hostname displayed incorrectly

hiii,

in many of the linux machines i have tried this but the result is the same everywhere.

if there are double letters in a hostname then that is displayed as single letter.

e.g. if hostname is set to nepttune then login into the shell will display :

NEPTUNE(admin)@/ [20]
$ hostname
nepttune
NEPTUNE(admin)@/ [21]
$ uname -n
nepttune
NEPTUNE(admin)@/ [22]
$

even if i do ssh from some other then also it will not display correct hostname with double letters repeating but only single letter.
any consequetive double letters are always displayed as single letter.
but if u type the command "hostname" or "uname -n" then it will display the correct hostname.


can anyone plz tell if there is any solution to this ?
Reply With Quote
  #3  
Old 11-23-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
Your correct hostname is what is displayed on running 'hostname' or 'uname -n' commands. Are you using DNS for hostname resolution? If so, then it is probably a mistake on the DNS server.
Reply With Quote
  #4  
Old 11-23-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
shamik, do not create multiple threads for a single subject. I have merged the threads.
Reply With Quote
  #5  
Old 11-23-2007
Registered User
 

Join Date: Nov 2007
Posts: 7
No,
we are not using any DNS for name resolution. I just dont understand how to solve this problem.
Reply With Quote
  #6  
Old 11-23-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
How do you connect to the server (via telnet/ssh)? Using the IP address directly?
Reply With Quote
  #7  
Old 11-23-2007
Registered User
 

Join Date: Nov 2007
Posts: 7
i connect to the server from my win xp machine through ip address directly using telnet.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:39 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0