FQDN: fully qualified domain name
An FQDN, or fully qualified domain name, is a domain name that includes every label from the host down to the DNS root, for example www.example.com. Strictly it ends with a dot for the root label, though the dot is usually left off when you type it.
- It is unambiguous: a resolver never appends a search domain to it.
- Limits: 63 bytes per label and 255 bytes for the whole name on the wire.
- In zone files a name with no trailing dot is relative to the zone origin, a common source of errors.
How is an FQDN built?
. root (the empty label, written as the trailing dot)
com. top-level domain
example.com. second-level domain (the registered name)
www.example.com. host label, a subdomain: this is the FQDNFQDN, partial name or URL?
| Form | Example | Is it an FQDN? |
|---|---|---|
| Full name with trailing dot | mail.example.com. | Yes |
| Full name without the dot | mail.example.com | Yes, by common usage |
| Relative or short name | No, depends on the search domain | |
| URL | https://mail.example.com/inbox | No, it contains a scheme and a path |
RFC 8499 notes the term is ambiguous: strictly the trailing dot is part of it, but names are usually written without it. See RFC 8499.
Common questions
Is www.example.com an FQDN?
Yes. It names every label from the host www to the TLD, so it identifies one place in the DNS tree. The root label is implied, which is why the trailing dot is often dropped.
Why do zone files use a trailing dot?
In a zone file, a name without a trailing dot is treated as relative and the zone origin is appended. Writing mail.example.com without the dot in the example.com zone would become mail.example.com.example.com.
What is the maximum length of an FQDN?
Each label can be at most 63 octets and the full name at most 255 octets in wire format, as set by RFC 1035. The usual written limit is therefore about 253 characters.
Keep reading
Watch your domains automatically
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.