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
| FQDN | Components |
|---|---|
| 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.