I have read the question "How to set the fully qualified domain name", and I am trying to understand the difference between "the" hostname (it seems there is only one) and the domain names (via DNS, where I can have many names for a single IP address).
Is it true that the hostname in /etc/hostname
is just a company internal name, so that I can distinguish different machines? Is this the name which folks name according Star Wars avatars, Greek philosophers etc.? Does this name ever matter to anyone outside the company if there's no DNS entry for it?
Example:
/etc/hostname contains
alpha
my DNS domain is example.com
and DNS knows www.example.com
and mail.example.com
/etc/hostname
as the name for your computer on the network when it assigns an IP address to your machine. – NZD Dec 14 '15 at 02:50