A Fully Qualified Domain Name (FQDN) identifies the precise location of a resource within the DNS hierarchy. An FQDN includes the complete path, from the hostname to the root domain, and usually appears in the format:
hostname.second-level-domain.top-level-domain.
For example, www.example.com.
The structure of an FQDN can be broken into three main parts:
- Top-Level Domain (TLD): The rightmost label, such as
.com,.org, or a country-code like.ch. This represents the highest level of the DNS hierarchy. - Second-Level Domain (SLD): The label directly to the left of the TLD. It often identifies the organization, business, or service. For example, “
example” inexample.com. - Subdomain / Third-Level Domain (Hostname): Any label that appears to the left of the SLD, used to identify specific services or hosts. In
www.example.com, “www” is a subdomain.
DNS operates hierarchically, moving from the root (.) → TLD → SLD → subdomain/third-level domain. This structure ensures that every domain and subdomain is unique and can be resolved to the correct resource.
Domains have different DNS record types, which map FQDNs to their corresponding services:
- A Record: Maps a domain to an IPv4 address.
- AAAA Record: Maps a domain to an IPv6 address.
- CNAME (Canonical Name): Points one domain to another, often used for aliases.
- MX (Mail Exchange): Directs email to the appropriate mail server for a domain.
- TXT (Text): Provides text-based information, often used for verification (e.g., SPF, DKIM).
- NS (Name Server): Specifies the authoritative DNS servers for the domain.
These records allow domains and subdomains to be resolved into IP addresses, email servers, or other services. Together, the structure of the FQDN and the configuration of DNS records form the backbone of internet addressing and communication.
