[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

FQDN vs. domain in /etc/hosts



Hello,

in my understanding the /etc/hosts file should contain an entry with the FQDN of the host.

123.123.123.123 hostname.domain.tld hostname

I would for simplicity prefer to use a domain name instead of a FQDN.

123.123.123.123 domain.tld hostname

In my DNS-configuration I can define an IP- address for both the domain name and the subdomain.

domain.tld -> 123.123.123.123
subdomain.domain.tld -> 123.123.123.123

So both addresses are unambiguous. For what reason now would I need a FQDN? Why wouldn't a domain name suffice?

Cheers, Stefan


Reply to: