In the case I suppose that when you installed your OS, you configured the hosts, hostname and resolv.conf with the correct data.
For host
IP server.example.com server
For hostname
servser.example.com
For resolv.conf
IP nameserver
Then continuing, you will configure in the DNS zone of your...