Here is what I would hope is a clear and concise description and summary…
A Hostname really is only the leftmost part if a name contains period delimiters, eg
Abbadabba
if the machine might also be known as for examples
Abbadabba.foobar
Abbadabba.foobar.com
Typically, after the Hostname is the name of the computer group the machine belongs to. Typically it can be a Domain name, workgroup name, whatever… but if it’s only one part, then it still cannot be considered “Fully Qualified”
By definition, a “Fully Qualified Domain Name” is a computer name that includes not only the Hostname, but also the Domain and possibly Subdomain names, plus a Top Level Domain name, which if routable over the Internet must be one of the approved ICANN extensions like COM, ORG, GOV, CA, TV, etc. Note that if the group name should <not> be Internet routable, then you can choose whatever you want as long as it’s not on the ICANN approved list.
So, the question you seem to be asking is what name do you use when you create a Hosts entry?
Minimally, you only need the Hostname, and in every default Hosts file you’ll see one of this type called “localhost”
But, you’re usually not restricted to only the minimal Hostname, you can usually enter the Domain and Subdomain parts as well if you feel it’s necessary to properly identify the machine.
Note also that most name resolution systems will automatically append the configured group name to the Hostname, so you should not have to explicitly include the locally configured default group name in the Hosts file entry.
HTH,
Tony