Hi
I am also a newbie and also very confused! At least the changes I made to the DNS server settings have got rid of the apache2 error message this post started with.
I have found that hostname appears to be used fluidly for both the server name and the FQDN in many articles I have read (probably because it is not fully understood by the author or the author assumes the reader fully understands it).
I think you will find that gelshoes is not your FQDN. The FQDN would be gelshoes.domain.tld or gelshoes.tld. Like you, I find this all really confusing.
My equivalent of gelshoes.domain.tld is xorex.rocks, my FQDN. It looks like I have set the server up incorrectly as I have used the FQDN as my hostname and according to Carson, this will give me problems down the line for my virtual host xorex.rocks that I have set up. What sort of problems am I going to encounter?
So my entries are:
/etc/hostname
xorex.rocks
and /etc/hosts includes these lines
127.0.1.1 xorex.rocks.localdomain xorex.rocks
127.0.0.1 localhost
I needed to reboot the server to reset it with these changes and make them permanent.
What I do not understand is now when I ssh in to the server I see that my response is root@xorex:~# and not root@xorex.rocks:~# which is what I would have expected. Can someone explain why?
How do I amend my setup to avoid the problems that Carson suggests?
Should I call my server just xorex then set:
/etc/hostname
xorex
and /etc/hosts to still include these lines
127.0.1.1 xorex.rocks.localdomain xorex.rocks
127.0.0.1 localhost
or should it be
127.0.1.1 xorex.rocks.localdomain xorex
127.0.0.1 localhost
?
Finally Joe, it is also not clear to me in your response why I would want to add the n1 name to the dns zone (as n1 or as n1.virtualmin.com?) if I am not using the n1 for anything other than the name of the server?
I know I am an idiot so please treat me as one in your responses!