Protocols & standards

FQDN

Fully Qualified Domain Name.
← Back to glossary

What is an FQDN (Fully Qualified Domain Name)?

A Fully Qualified Domain Name (FQDN) is the complete domain name that specifies the exact location of a host within the DNS hierarchy. It includes all labels from the specific hostname through every level up to the root domain, leaving no ambiguity about the location being referenced.

FQDN structure

Components

hostname.subdomain.domain.tld.

↓ ↓ ↓ ↓

www blog example com (root)

Reading the hierarchy

Right to left (most to least significant):

  • Root (represented by trailing dot)
  • TLD (.com)
  • Domain (example)
  • Subdomain(s) (blog)
  • Hostname (www)

Example FQDNs

FQDNComponents
www.example.com.host.domain.tld
mail.subdomain.example.com.host.sub.domain.tld
server1.dc1.internal.company.com.host.sub.sub.domain.tld

FQDN vs partial domain names

FQDN (absolute)

  • Complete path to root
  • Ends with trailing dot
  • Unambiguous reference
  • Example: www.example.com.

Relative domain name

  • Incomplete path
  • No trailing dot
  • Context-dependent
  • Example: www

The trailing dot

What it means

The trailing dot represents the DNS root:

www.example.com.

↑

Root zone (empty label)

When it's used

  • DNS zone files
  • BIND configurations
  • MX records pointing to hostnames
  • Canonical DNS specifications

When it's omitted

  • Web browsers
  • Email clients
  • Most user interfaces
  • Marketing materials

FQDNs in DNS records

Zone file example

; Zone file for example.com

www.example.com. A 93.184.216.34

mail.example.com. A 93.184.216.35

example.com. MX 10 mail.example.com.

Common mistake

Without trailing dot, name is appended:

mail.example.com    MX    10 mail

; Resolves to: mail.example.com.example.com.

FQDN requirements

Valid FQDN criteria

  • Maximum 253 characters total
  • Each label maximum 63 characters
  • Labels separated by dots
  • Can contain letters, numbers, hyphens
  • Cannot start or end with hyphen

Character rules

Valid: www.example-site.com.

Invalid: www.-example.com.

Invalid: www.example-.com.

FQDNs in different contexts

Web servers

ServerName www.example.com

SSL certificates

  • Certificate must match FQDN
  • www.example.com ≠ example.com
  • Wildcard: *.example.com

Email configuration

MX records must use FQDNs:

@ MX 10 mail.example.com.

Resolving FQDNs

DNS resolution process

1. Query for www.example.com.

2. Root servers direct to .com servers

3. .com servers direct to example.com NS

4. Authoritative server returns A record

5. IP address returned to client

Understanding FQDNs is essential for proper DNS configuration, avoiding common errors in zone files and server configurations.

Put this knowledge to work

Use DomScan's API to check domain availability, health, and more.