I'm new to this platform but I try to be as specific as possible. I researched quite a lot but every new answer just adds to the confusion at the moment.
I am running Debian on my first server with a static IP.
I have a domain
burgers.de which has an A-record to my server's IP.
The hostname of this machine is
It's hosts file has these entries:
127.0.0.1 localhost.localdomain localhost xx.xx.xx.xx burgers.de burgers # ::ffff:xx.xx.xx.xx burgers.de burgers # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
Now to the confusing part:
Everywhere something like
hostname.domain.tld after the IP in the hosts file is recommended. That would be
burgers.burgers.de in my case which seems odd to me.
But I can't find any explanation why it should have this structure of 'hostname''domain''tld'. Can't I simply use just my domain
burgers.de in there?
The man page for hosts unfortunately doesn't help.
My goal is to achieve a correct FQDN.
Thanks for the help in advance and please correct me in any way. I'm here to learn but temporarily stuck and would not have asked otherwise.