A fully qualified domain name (FQDN) is the complete name of a host on the internet, spelled out from the host label to the top-level domain, such as www.example.com. It leaves out the protocol and the page path, and it can end with a dot that marks the root of the DNS hierarchy.
You meet FQDNs whenever you set up DNS records, configure a mail server, or order an SSL certificate. This guide explains what an FQDN is, how its parts fit together, how it differs from a URL and a hostname, and the length and character rules you need to know. For background on how names turn into addresses, see our guide on how DNS works.
FQDN at a Glance
- Format: host name, then any subdomains, then the domain and top-level domain, separated by dots, such as mail.europe.example.com.
- Trailing dot: an optional final dot marks a name as absolute, meaning complete and anchored at the DNS root.
- Not a URL: an FQDN never includes https://, a port, or a path.
- Length limits: each label can be up to 63 octets, and the whole name up to 255 octets, which is 253 characters in readable form.
- Where it matters: DNS records, mail servers, SSL certificates, and server configuration.
What Is a Fully Qualified Domain Name?
The Domain Name System is a hierarchy. At the top sits the root, below it the top-level domains such as .com, and below those the names people register. An FQDN names a spot in that tree without leaving anything out, so it can be understood on its own, from any computer, with no local context.
RFC 1035, the DNS specification, describes the idea in terms of zone files: domain names that end in a dot are called absolute and are taken as complete, while names that don’t end in a dot are relative, and the actual name is the relative part joined to an origin. In everyday use, people call any complete host name an FQDN, with or without the final dot.
The Parts of an FQDN
Take mail.europe.example.com. as an example. Reading right to left moves from the broadest level to the most specific.
| Part | In the example | What it does |
|---|---|---|
| Root | the final dot | Marks the top of the DNS hierarchy. Usually hidden. |
| Top-level domain (TLD) | com | The highest level below the root, such as .com or .org. |
| Second-level domain | example | The name you register, which together with the TLD makes example.com. |
| Subdomain | europe | An optional division you create under your domain. |
| Host name | The label for one machine or service, such as www or mail. |
FQDN vs Hostname, Domain Name, and URL
These terms overlap, which is why they get mixed up. The table shows what each one covers, using the same site.
| Term | Example | What it includes |
|---|---|---|
| Hostname | www | Only the label for one host. It isn’t unique on its own. |
| Domain name | example.com | The name you register: the second-level domain plus the TLD. |
| FQDN | www.example.com. | Every label from the host to the TLD, optionally with the root dot. |
| URL | https://www.example.com/pricing | A scheme, a host (the FQDN), and a path, per RFC 3986. |
In everyday use, “domain name” means the name you register, such as example.com, while an FQDN names a specific host under it, such as www.example.com. When someone gives you a URL and asks for the FQDN, drop the https:// and everything after the first slash.
FQDN Rules and Limits
- Label length: RFC 1035 sets labels at 63 octets or less.
- Total length: RFC 1035 sets names at 255 octets or less. Because the encoding adds a length byte to each label, the readable maximum is 253 characters, as Microsoft’s Raymond Chen explains, and the optional root dot doesn’t count toward it.
- Allowed characters: host names use letters, digits, and hyphens under RFC 952, and RFC 1123 relaxed the rule so a host name can start with a letter or a digit.
- Case: DNS names aren’t case-sensitive, so Example.com and example.com point to the same place.
FQDN Examples
| FQDN | Host name | Domain |
|---|---|---|
| www.example.com. | www | example.com |
| blog.example.com | blog | example.com |
| mail.europe.example.com. | example.com, with the europe subdomain |
A partial name such as “www” or “mail.europe” is not an FQDN. A computer can only expand it if it knows which domain to append.
Where You Need an FQDN
DNS records. Records such as CNAME and MX point to other names. In a zone file, a name without a trailing dot is treated as relative, so RFC 1035 says it gets the zone’s origin added. Writing mail.example.com with no final dot in the example.com zone can produce mail.example.com.example.com, a common mistake that the trailing dot prevents.
Mail and server settings. Mail servers and other services identify themselves and each other by full names, so setup screens often ask for the complete host name, such as mail.example.com, rather than just mail.
SSL certificates. A certificate covers specific names, so you list the exact host names you want protected, such as www.example.com. If your site answers at more than one name, make sure each one is covered.
How to Find an FQDN
For a website, look at the address bar: in https://www.example.com/blog, the FQDN is www.example.com. For a Linux server, the hostname command with the –fqdn flag (or -f) prints the system’s FQDN, according to its manual page. The same page warns that results depend on your configuration and recommends hostname –all-fqdns on systems with several interfaces. On Windows, the ipconfig /all command in Command Prompt displays your full network configuration, including the computer’s host name and DNS suffix.
The Bottom Line
An FQDN is the full, unambiguous name of one host: every label from the host to the top-level domain, optionally ending in a dot. It never includes the protocol or a path, and it stays within 63 characters per label and 253 characters overall.
Need a name of your own? Read our guides on how to buy a .com domain and how to check if a domain name is available, or see our HostPapa review and top 10 web hosting providers for hosts that include a free first-year domain.
Visit HostPapa · Visit Hostinger
FQDN FAQs
What is an example of an FQDN?
www.example.com is an FQDN, and so is mail.europe.example.com. Each one names a specific host by listing every label from the host to the top-level domain. A name written with a final dot, such as www.example.com., is the strictest form, because the dot marks the DNS root and removes any doubt.
Does an FQDN include https://?
No. https:// is the scheme of a URL, not part of the domain name. A URL combines a scheme, a host, and often a path, and the host portion is the FQDN. For https://www.example.com/pricing, the FQDN is www.example.com. Ports and paths are never part of it.
What is the difference between an FQDN and a domain name?
In everyday use, a domain name is the name you register, such as example.com, while an FQDN identifies a specific host, such as www.example.com. Both are written the same way, so the difference is how specific the name is. An FQDN spells out every label with nothing left to guess.
What is the maximum length of an FQDN?
RFC 1035 limits each label to 63 octets and the whole name to 255 octets. Because the encoding adds a length byte to each label, the readable maximum is 253 characters. The optional trailing dot isn’t counted toward that limit, so a 253-character name can still end with a dot.
Why does an FQDN end with a dot?
The final dot represents the DNS root. RFC 1035 says names that end in a dot are absolute and taken as complete, while names without one are relative and get an origin appended. Browsers hide the dot, but it matters in DNS zone files, where leaving it off can change what a name means.
Is www part of the FQDN?
Yes. In www.example.com, www is the host name label, so it’s part of the FQDN. The domain alone, example.com, is a different name, and your DNS can send the two to different places. Make sure both names resolve, or redirect one to the other, so visitors never see an error.
How do you find the FQDN of a server?
On Linux, run hostname –fqdn or hostname -f, which prints the system’s FQDN according to its manual page. The page warns that results depend on your network configuration and recommends hostname –all-fqdns when a machine has several interfaces. On any system, you can also check the name in your DNS records.
Sources: the IETF’s RFC 1035, RFC 1123, and RFC 3986; Raymond Chen’s post on the real maximum length of a DNS name; and the Linux hostname manual page. All checked December 1, 2026.