I have a cloud server running Debian 7. My domain (www.domain.com and domain.com) both have an A record pointing to the static IP address of my cloud server.
On the cloud server itself, what should my /etc/hosts and /etc/hostname be set as?
I plan to have multiple servers, so I started labeling the servers as:
web01-east
web01-west
sql01-east
sql01-west
so that I know the location of each server.
Should the /etc/hosts look like:
web01-east
or
web01-east.domain.com
And should the /etc/hostnames look like:
1.1.1.1 web01-east
or
1.1.1.1 web01-east.domain.com