Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've a new entry that I put in the HOSTS file: COMMRTU7 commrtu7 commRTU7

The first two entries ping, but the third one won't ping. I have a list of entries like this that work fine, any ideas why this won't?

share|improve this question
tru64 wow that brings back memories - all good apart from the slow decline into obscurity. – Sim Nov 26 '09 at 23:34

make your entry just: commrtu7

and then try to ping all three

ping COMMRTU7 
ping commrtu7 
ping commRTU7

They are all the same.

share|improve this answer
up vote 1 down vote accepted

Thank you to the answerers who gave me good information.

The problem turned out to be that there was a '^M' after the line (right after the entry in question), that didn't show when you CATed a file, but you could see in VI. After removing the '^M' it worked as normal.

The reason it came out wrong was that I edited the HOSTS file on Windows in Notepad. The way to do it right is to use a Unix editor, or use TextPad on Windows and Save to a UNIX file format.

share|improve this answer

I have no idea why it doesn't work, I am actually surprised that it appears to be case sensitive, even though RFC 952 dictates otherwise. Are you sure that the tru64 implementation is case sensitive to begin with?

share|improve this answer
While the OS is definitely case-sensitive, I'm not sure if the hostnames are, but the vendor who set this up for their software in 2000, thought it was necessary. – Lance Roberts Sep 21 '09 at 20:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.