Glossary / DNS basics
FQDN (fully qualified domain name)
A fully qualified domain name (FQDN) is a hostname written out in full, from the host label up to the top-level domain, such as www.example.com. It names exactly one node in DNS. In zone files and DNS tools it ends with a trailing dot that stands for the root.
Copy the syntax
FQDN in a zone file
www.example.com. 3600 IN A 192.0.2.10The trailing dot makes the name absolute.
Print this machine's FQDN
hostname -fLinux and macOS. On Windows: [System.Net.Dns]::GetHostEntry('').HostName in PowerShell.
Have a name in mind?
.com $24.99 first year, renews at $24.99/yr. Other endings: not on sale yet.
In plain English
An FQDN is a full hostname with nothing left out, like mail.example.com rather than just mail.
What to do
- Use full names in certificates, mail settings and server configs.
- Keep the trailing dot on names in zone files.
- Check a short name never relies on a search suffix in production.
- Defined in
- RFC 1034, section 3.1 (absolute names)Source: RFC 1034
- Maximum length
- 255 octetsSource: RFC 1035
- Label length
- 63 octets or less eachSource: RFC 1035
- Term defined
- RFC 9499, DNS terminologySource: RFC 9499
FQDN vs domain name: what is the difference?
A domain name can be partial, like example.com when you mean the whole zone. An FQDN points to one specific host, like mail.example.com, and leaves nothing for the system to fill in.
In daily use people often drop the trailing dot. Browsers and most apps treat www.example.com and www.example.com. the same.
Where do I need an FQDN?
SSL certificates, mail server settings, SPF and MX records, and server configs all ask for full names. A short name like mail relies on a search suffix that differs between networks, so it can resolve to the wrong place or not at all.
Why does the trailing dot matter in zone files?
In a zone file, a name without a final dot is relative: the zone’s own name is added to it. Writing www.example.net without the dot inside example.com’s zone produces www.example.net.example.com, a common cause of broken CNAME records.
FQDN examples
| Name | Fully qualified? | Why |
|---|---|---|
| www.example.com. | Yes | Every label plus the root dot |
| mail.example.com | Yes, in practice | Complete; tools add the dot |
| No | Needs a search suffix | |
| example.com | Yes, for the apex host | Names the zone's own node |
Questions about FQDN (fully qualified domain name)
Is a URL an FQDN?
No. A URL contains an FQDN as its host part, for example www.example.com in the address of a blog page on that site. The scheme, path and query are not part of the name.
Does an FQDN need a trailing dot?
Strictly, yes: the final dot is the root and makes the name absolute. In browsers, certificates and most settings you can leave it off. In zone files, leaving it off changes the meaning.
How long can an FQDN be?
An FQDN can be up to 255 octets in wire format, and each label between dots can be up to 63. In practice that leaves room for about 253 visible characters.
Is a subdomain an FQDN?
A subdomain written out in full, such as shop.example.com, is an FQDN. Written alone as shop, it is only a label and needs the rest of the name to mean anything.
Put it to work on your own domain
See the first-year and renewal price before you pay.