Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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'm aware that modifying /etc/sysconfig/network can set a permanent hostname for my server. But I also want to set some alias for it, and make several clients able to resolve them, how can I achieve this?

/etc/hosts is just working for one local machine, I have to modify it for client machines separately, so it will not be an option. Is setting up a dns server the only way?

share|improve this question
up vote 6 down vote accepted

Either distributing a hosts file or leveraging DNS is the only way to accomplish this.

share|improve this answer
Hmm, if it has to be. Thank you. – Rufus Mar 7 '12 at 21:21

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.