The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
case sensitive "if [ -e $file ]"? jul Shell Programming and Scripting 2 05-08-2008 09:48 AM
Solaris - unknown hostname - how can I change hostname? XNOR UNIX for Dummies Questions & Answers 1 03-29-2007 11:52 PM
Ignore case sensitive in Case Switch annelisa Shell Programming and Scripting 1 07-13-2006 05:36 AM
how to disable case sensitive on RHEL ? blesets UNIX for Dummies Questions & Answers 2 04-02-2006 10:47 PM
Unix user ID's case-sensitive? dmilleville UNIX for Dummies Questions & Answers 3 12-14-2003 08:38 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-16-2006
ajphaj ajphaj is offline
Registered User
  
 

Join Date: Dec 2004
Location: India
Posts: 10
Is Hostname Case sensitive ?????

Hello users,

I have a question ?

I was just wondering whether the hostname on unix systems are case sensitive.

For example in the system which I work.

ping TestHost and ping testhost gives me the same output i.e I get the reply from the remote host

Is this applicable for all systems ??

Thanks in advance

ajphaj
  #2 (permalink)  
Old 02-16-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,958
it depends how the hostname and literal IP address are configured in /etc/hosts

and if it is not that

nameserver in /etc/resolv.conf

which maps hostname to IP address
  #3 (permalink)  
Old 02-16-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
My two cents...
When you configure a hostname for the system (make the entries in it's /etc/nodename, /etc/rc.config.d/whatnot files), that hostname is case sensitive. If you configure a system with name UPPERCASE, then the 'uname -n' or 'hostname' commands will give you the output as UPPERCASE. But this remains only on the system that you configure.

On another system, you make the entry of the IP address in the /etc/hosts file and give the system name as 'lowercase', then the system will see that IP address with the hostname 'lowercase'. In that case if you type ping lowercase, you would get a reply, even though the actual hostname of the remote system that you are pinging is UPPERCASE.
  #4 (permalink)  
Old 02-16-2006
ScatterBrain ScatterBrain is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 61
from the perspective of name resolution, i do not believe hostnames are case sensitive.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:21 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0