Saturday, 1 June 2013

Include domain name or not in /etc/hosts?

I am setting up a VMWare cluster of CentOS nodes. Is it best practice to include a domain name after the machine? What are the potential problems of leaving it out? Does a domain complicate configuration or simplify it?
For example, if my node is at 192.168.1.93, should I change /etc/hosts from
127.0.0.1 localhost.localdomain localhost
to
127.0.0.1 localhost.cluster localhost
192.168.1.93 computernode1.cluster computenode1
or
127.0.0.1 localhost
192.168.1.93 computenode1
or
#127.0.0.1 localhost
192.168.1.93 computenode1
or
192.168.1.93 localhost
192.168.1.93 computenode1

No comments:

Post a Comment