Link to home
Start Free TrialLog in
Avatar of marcusjones
marcusjones

asked on

Unix: Why is Hosts file NOT case-sensitive?

Hi all!

I have a question that's bugging me!

Does anyone know why the /etc/hosts file on a Unix system is NOT case-sensitive?

As we all know, Unix systems are case-sensitive, so I wonder how this slipped through the net!

The reason I ask, is because it's actually causing me some hassle as the hosts file on one of my Network Management Systems is used in an import script for use by another system - The applications ARE case-sensitive this mis-match, means I have a bug to fix!

Any explanation of this would be interesting, because it just seems wierd to me!

Many thanks for any insight on this

Thanks

Marcus
Avatar of gheist
gheist
Flag of Belgium image

Is this homework question?
ASKER CERTIFIED SOLUTION
Avatar of Jeff Darling
Jeff Darling
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Some old systems require tld to be capital, but who cares nowadays.
Hi,

Why you are linking hostnames to UNIX? This has to do with networking! Networking protocols are not developed by UNIX developers. They are used on many systems.

Avatar of marcusjones
marcusjones

ASKER

To ghiest:

No this is not a homework question! I explained in the original post, this behaviour actually means that 'sloppy' entries in the hosts file on one system, then cause problems with an application on another system, because the hosts file is used as an input file for another script

Hosts files may not be case-sensitive, but many COTS software products are, so when you're integrating many disparate systems this can present problems


To jeffid:

Thanks for your reply. That's exactly what I needed to know. As it's in this RFC, I can now see why they decided to make the hosts file case-insensitive also

At least if anyone asks what the problem is, I'll be able to explain it a little more fully now :)
To omarfarid:

I linked it to Unix, because it was a 'Unix Networking' question. My question was directly related to case-sensitivity of the hosts file on a Unix System

If seemed like reasonable logic to me...