What is fqdn hostname

Last updated: April 1, 2026

Quick Answer: An FQDN hostname is the complete, fully qualified name of a specific computer or service that includes both the local hostname and the domain it belongs to. For example, 'webserver01.example.com' is an FQDN hostname where 'webserver01' is the hostname and 'example.com' is the domain.

Key Facts

Understanding FQDN Hostnames

An FQDN hostname is the complete address of a specific computer or service on a network. It combines two components: the local hostname (which identifies the specific machine) and the domain name (which identifies the organization or network it belongs to). This combination creates a globally unique identifier that can be used to access that specific computer from anywhere on the internet.

Hostname vs. FQDN Hostname

It's important to understand the distinction between a simple hostname and an FQDN hostname. A hostname is a local name for a computer, like 'webserver01' or 'fileserver'. This name is only meaningful within a local network or organization. An FQDN hostname is the complete name, such as 'webserver01.example.com'. The FQDN hostname is globally unique and can be used to access the computer from anywhere, while the simple hostname requires additional context to be useful outside the local network.

Setting an FQDN Hostname

Administrators set FQDN hostnames during system configuration. On Linux systems, this is typically done in the /etc/hostname file or through system configuration tools. On Windows, it's set through System Properties and network settings. Once set, the operating system uses this FQDN hostname for system identification, DNS registration, and network communication. Many systems also create a mapping in the local hosts file (like /etc/hosts) that associates the FQDN hostname with the local loopback address for local access.

FQDN Hostnames in Network Services

Many network services require knowledge of the system's FQDN hostname to function correctly. SSH uses the FQDN hostname to verify server identity. Kerberos authentication requires the system's FQDN hostname for ticket generation. Mail servers use FQDN hostnames to identify themselves in SMTP conversations. Web servers may use FQDN hostnames in default page content or logging. Database systems use FQDN hostnames for replication and clustering. Any service that needs to identify itself or be identified by clients benefits from having a proper FQDN hostname.

FQDN Hostnames and DNS Registration

When an FQDN hostname is set, it should be registered in the organization's DNS servers with an A record (for IPv4) or AAAA record (for IPv6) pointing to the computer's IP address. This allows other systems to resolve the FQDN hostname to find the computer's IP address. Some systems, particularly servers in data centers, have their FQDN hostnames pre-registered in DNS as part of infrastructure setup. Dynamic DNS systems can even automatically update FQDN hostname records when a computer's IP address changes.

FQDN Hostnames in Remote Access

When accessing a computer remotely, you typically use its FQDN hostname rather than its IP address. For example, you might SSH into a server using ssh user@webserver01.example.com rather than using an IP address. This approach is more convenient and more reliable than IP addresses because domain names don't change when servers are moved or IP addresses are reassigned. Tools like RDP, SSH, and remote management interfaces all benefit from using FQDN hostnames.

Related Questions

What is the difference between hostname and FQDN?

A hostname is a local name (like 'server01') that's only meaningful within a network. An FQDN is the complete name (like 'server01.example.com') that's globally unique and can be used from anywhere. FQDNs include domain information; hostnames don't.

How do I find a computer's FQDN hostname?

On Linux, use the command 'hostname -f' to display the FQDN. On Windows, open Command Prompt and type 'hostname' (though this may only show the short hostname). You can also check system settings or DNS records to verify the complete FQDN.

Can a computer have multiple FQDN hostnames?

Yes, a computer can have multiple FQDNs through DNS aliases (CNAME records) or multiple network interfaces with different names. However, the primary FQDN hostname is typically the one returned by the 'hostname' command, while other names are aliases.

Sources

  1. Wikipedia - Hostname CC-BY-SA-4.0
  2. Wikipedia - Fully Qualified Domain Name CC-BY-SA-4.0