I am new to the world of setting up servers and am baffled by the term hostname and fully qualified domain name (FQDN).
For example, if I want to set up a server that hosts files on the local network i.e. a file server, what would I use a hostname such as myfileserver
or something else?
What if I wanted to set up a web server, mail server, etc. that external users could access?
Hostname vs FQDN – Difference Between Hostname and Fully Qualified Domain Name
domaindomain-name-systemhostname
Related Topic
- Links inside intranet: use fully qualified name, or just hostname
- Setting the Hostname: FQDN or Short Name?
- Centos – How to reset and persist the hostname and FQDN of an WIdows Azure Centos instance
- Purpose of Setting Hostname/FQDN in Hosts File on Linux Hosting
- Use an FQDN instead of the server’s IP address
- Linux – HOSTALIASES with Fully qualified domain names
Best Answer
Your hostname is the name of your computer.
Your fully qualified domain name is your hostname plus the domain your company uses often ending in
.local
.So if the name of your computer is
bob
, and your company's domain iscontoso.local
, your computer's fully qualified domain name (FQDN) isbob.contoso.local.
:bob
contoso.com
bob.contoso.com.
In the case of a domain like
contoso.local
I did not use an "external" internet domain name. This name doesn't have to be the only way that you address the server.If you make it available by its IP address you can use DNS or that IP address to allow external users to access it.
The dot at the end of the FQDN is used to indicate the empty top-level domain.
Some more information on DNS:
Edit: Thanks for the comment on
.local
domains RobM