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?


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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