I have a VPS which is currently serving 2 websites and a game server. The "primary" website - my website - is robinjam.net.
I've read multiple conflicting tutorials on the internet regarding configuration of hostname, /etc/hosts and DNS, and I'm trying to work out what the "preferred way" of setting this up is.
Can I set my hostname to anything I want?
Do I still need to add my hostname and FQDN to /etc/hosts, even if DNS is resolving my FQDN correctly?
Should the entry in /etc/hosts point to my public IP or the loopback address?
Let's say I want to set the hostname for my VPS to, for example, "linode". Should I add a DNS A record for linode.robinjam.net, or is this unnecessary?
I'm sorry if these are basic questions, but I'm a complete novice when it comes to server administration.