Skip to main content
DNSnexus
Free Developer Tools
DNS
Email
Network
Webmaster
Security
IP
Guides
Live Tools
60+
Categories
6
Result URLs
Shareable
Availability
24/7
DNSnexus
Free Developer Tools
Free DNS, email, network, and security diagnostics with crawlable tool pages and shareable result URLs.
Run DNS CheckBrowse All Tools
Popular Tools
DNS Propagation CheckerDNS LookupWHOIS LookupSPF Record CheckerDMARC CheckerSSL Certificate CheckerPort Scanner
Quick Path
Fix Email Deliverability
Quick Path
Troubleshoot DNS Changes
Quick Path
Validate SSL & Open Ports
DNS Tools
A Record LookupAAAA Record LookupCERT LookupCNAME LookupDNS CheckDNS LookupDNS Propagation CheckerDNSKEY LookupDS LookupIPSECKEY LookupLOC LookupNS LookupNSEC LookupNSEC3PARAM LookupReverse DNS LookupRRSIG LookupSOA LookupSRV LookupTXT LookupWHOIS Lookup
Email Tools
BIMI LookupBlacklist CheckDKIM CheckerDMARC CheckerDMARC Report AnalyzerEmail Deliverability ReportEmail Header AnalyzerEmail Health ReportGoogle/Yahoo Compliance CheckerMicrosoft Compliance CheckerMTA-STS LookupMX Record LookupSMTP TestSPF Record Checker
Network Tools
HTTP LookupHTTPS LookupMAC Address GeneratorMAC Address LookupOnline TraceroutePingSubnet Calculator
Webmaster Tools
HTTP Headers CheckSearch Presence CheckWebsite Link AnalyzerWebsite Operating System CheckWebsite Redirect CheckerWhat is My User Agent?
Security Tools
DKIM Record GeneratorDMARC GeneratorDomain DNS Security CheckEmail Security CheckerPort ScannerSPF GeneratorSSL Certificate CheckerWebsite Vulnerability Scanner
IP Tools
ARIN LookupASN LookupIP Blacklist CheckIP Geolocation LookupWhat Is My IP
Company
All Tools DirectoryGuides & PlaybooksAbout DNSnexusContactAPI DocsPrivacy PolicyTerms & ConditionsCookie Policy
© 2026 DNSnexus — DNS, Email, Network & Security Tool Platform
All ToolsAboutContactPrivacyTerms
Home › Guides › DNS Diagnostics › FQDN (Fully Qualified Domain Name) Explained
DNS Diagnostics•9 min•Published 2026-07-15

FQDN (Fully Qualified Domain Name) Explained

An FQDN, or fully qualified domain name, is a domain name that spells out its exact position in the DNS hierarchy — hostname, subdomain, second-level domain, and top-level domain — with nothing left for a resolver to guess. `mail.example.com` is an FQDN; `mail` or `example` alone is not, because neither one unambiguously identifies a single host on the internet.

Quick Answer
An FQDN is the complete, unambiguous address of a host in DNS — for example www.example.com. — written left to right from most-specific label to the root. It differs from a bare "domain name" (example.com) by including the hostname, and technically ends in a trailing dot representing the DNS root, per RFC 1035 §5.1.

What Is a Fully Qualified Domain Name?

A fully qualified domain name is a domain name written with every label required to trace a path from a specific host all the way to the root of the DNS tree, with no level left implicit. RFC 1034 §3.1 describes the domain space as an inverted tree, where each node — the root, top-level domains, second-level domains, and hosts — is a separate label, and a name is "fully qualified" or "absolute" only when it specifies the complete path from a leaf node back to the root.

Take mail.example.com. Read right to left: com is the top-level domain (TLD), example is the second-level domain registered under .com, and mail is the hostname — the specific machine or service being addressed, typically a mail server in this case. Together, all three labels resolve to exactly one place in DNS. There's no other server on the internet that this exact string can point to.

Compare that to just example. On its own, that label is relative — it means nothing until a resolver appends a search domain to it (your OS or network DHCP configuration supplies that context locally), and it could resolve differently depending on which network you're on. That ambiguity is precisely what "fully qualified" rules out: an FQDN resolves the same way from any resolver, anywhere, because it carries its own complete context.

This distinction matters in practice anywhere a system needs to unambiguously reference a host — TLS certificate Common Names and Subject Alternative Names, SSH known_hosts entries, /etc/hosts files, MX records pointing at mail servers, and Kubernetes Service DNS names (my-svc.my-namespace.svc.cluster.local) are all FQDNs by construction, because a partial name would be unusable outside its local context.

How the FQDN Hierarchy Works

DNS resolution walks the tree from the root down, even though users read domain names the other direction. For mail.example.com., a resolver:

  1. Starts at the root (the empty label after the final dot), which is served by the 13 root server clusters.
  2. Queries the root for .com, getting back the authoritative nameservers for the .com TLD.
  3. Queries a .com nameserver for example.com, getting back the authoritative nameservers example.com's registrar set at signup.
  4. Queries example.com's nameserver for mail.example.com, getting back the actual A or AAAA record — the IP address.

Each step depends on the previous label being unambiguous. This is why an FQDN is sometimes called an "absolute" domain name — RFC 1034 contrasts it with a relative name that only makes sense appended to some assumed suffix. A relative name like mail sent to a resolver gets expanded using the local DNS search domain (configured via DHCP or /etc/resolv.conf's search directive) before the query goes out — which is exactly the ambiguity an FQDN avoids.

Code
mail.example.com.  3600  IN  A  203.0.113.10

That single record ties the FQDN mail.example.com. to one IP address, with a TTL of 3600 seconds controlling how long resolvers cache the answer before re-querying.

FQDN vs. Domain Name vs. Hostname (Reference Table)

These three terms get used interchangeably in casual conversation, but they refer to different scopes of the same name:

TermExampleWhat It IdentifiesUnambiguous on Its Own?
HostnamemailA single machine or service, local context onlyNo
Domain nameexample.comA registered namespace (TLD + SLD)Partially — no specific host
Subdomainmail.example.comA named zone or host under a domainYes, if it includes the hostname
FQDNmail.example.com.The complete path from host to rootYes — always
Relative namemail.example (missing TLD)Nothing resolvable without a search suffixNo

Interpretation: a "domain name" like example.com identifies a registered zone, but it isn't necessarily a working hostname — many domains don't answer on the bare apex without a specific service label. An FQDN, by contrast, always points to one queryable resource because it includes every level of specificity.

How to Find Your FQDN

The exact command depends on the OS, since each platform derives the FQDN from a different local configuration source (hostname + DNS suffix):

Code
# Linux — most distributions
hostname -f
hostname --fqdn

# macOS
hostname -f

# Windows PowerShell
[System.Net.Dns]::GetHostByName($env:computerName).HostName
Code
# Windows Command Prompt — reads the Primary DNS Suffix from ipconfig
ipconfig /all

On Linux and macOS, hostname -f combines the machine's short hostname with the DNS domain configured in /etc/resolv.conf or /etc/hosts. On Windows, ipconfig /all shows the "Primary DNS Suffix," which Windows appends to the computer name to form the FQDN. If the machine has no DNS suffix configured — common on a home network or a fresh VM — these commands return just the short hostname, because there's no domain context to append. That's the local machine's FQDN, distinct from a public website's FQDN, which is whatever hostname is published in that domain's DNS zone.

To check the FQDN and DNS records a domain actually publishes — rather than a local machine's configured name — run it through the DNS Lookup tool, which returns the full record set for any hostname you enter. If you need to confirm which nameservers are authoritative for a domain before trusting its published records, the NS Lookup tool does that directly.

The Trailing Dot: Why It Matters

Per RFC 1035 §5.1, "domain names that end in a dot are called absolute, and are taken as complete. Domain names which do not end in a dot are called relative." That trailing dot represents the DNS root — the zero-length label that terminates every domain name at the protocol level, as described in RFC 1035 §3.1. Technically, example.com. (with the dot) is the truly fully qualified form; example.com (without it) is what most software treats as equivalent, but it's the resolver's local configuration — not the name itself — that decides whether to try appending a search suffix if the bare form fails to resolve.

In everyday use, browsers and most applications silently accept example.com as fully qualified and never show users the trailing dot. But the distinction isn't purely academic: some TLS libraries and HTTP clients handle the trailing dot inconsistently. Certificate authorities never issue TLS certificates with a trailing dot in the Common Name or Subject Alternative Name field, so a client that sends the literal string example.com. (with the dot) in the TLS SNI field can trigger a hostname mismatch against a certificate issued for example.com (without it) — a documented interoperability gap that has appeared in bug trackers for major browsers, curl, and reverse proxies like Traefik. If you're debugging an unexpected certificate mismatch, check whether a trailing dot snuck into the hostname before assuming the SSL certificate itself is misconfigured.

Common FQDN Mistakes

Problem: Using a bare hostname where an FQDN is required. Cause: config files for mail servers, reverse proxies, and TLS certificates often require the fully qualified form (mail.example.com), but a bare hostname (mail) gets entered instead. Fix: always include the full domain suffix — verify what a service actually resolves to with the DNS Lookup tool before saving the config.

Problem: Assuming example.com and www.example.com are the same FQDN. Cause: they're visually similar, but they're two distinct hostnames that can point to different IPs, have different TTLs, and require separate DNS records. Fix: check both explicitly — many sites configure a redirect from one to the other rather than serving identical content at both.

Problem: Certificate hostname mismatch from an unexpected trailing dot. Cause: a client or script appends a trailing dot to force a fully-qualified lookup, then passes that same string with the dot into an HTTPS request, and CAs don't issue certs with trailing dots. Fix: strip the trailing dot before the value is used as an HTTP Host header or TLS SNI field — use it only at the DNS resolution step where it belongs.

Problem: FQDN exceeds the 253-character practical limit. Cause: deeply nested subdomains (common in some SaaS multi-tenant setups) pushing the total name length too close to the protocol limit. Fix: per RFC 1035 §2.3.4, the maximum encoded length is 255 octets, which — after accounting for the length-prefix byte on each label — works out to 253 usable characters in the human-readable dotted form, with each individual label capped at 63 characters; keep subdomain depth shallow to leave headroom.

Verify a domain resolves correctly end-to-end, and hasn't stalled mid-update across resolvers, with the DNS Propagation Checker.

Key Takeaways

  • ✓ An FQDN specifies every label from hostname to root — mail.example.com is fully qualified; mail alone is not.
  • ✓ The technically complete form ends in a trailing dot representing the DNS root, per RFC 1035 §5.1, though most software treats the dot as optional.
  • ✓ Maximum length is 253 usable characters (255 encoded octets), with each label capped at 63 characters, per RFC 1035 §2.3.4.
  • ✓ hostname -f (Linux/macOS) or ipconfig /all (Windows) reveals a local machine's FQDN; use the DNS Lookup tool to check what a public domain actually publishes.
  • ✓ A stray trailing dot in a hostname passed to a TLS client can cause a certificate mismatch, since CAs never issue certs with a dot in the name field.

Frequently Asked Questions

Q: What is an FQDN in simple terms?

It's the complete address of a specific host in DNS — for example www.example.com — including the hostname, domain, and top-level domain, so it resolves to the same place no matter where the query originates.

Q: What's the difference between an FQDN and a domain name?

A domain name like example.com identifies a registered namespace; an FQDN like www.example.com identifies one specific host within that namespace, including the hostname label.

Q: Does an FQDN need a trailing dot?

Technically yes — per RFC 1035, the trailing dot represents the DNS root and marks the name as absolute. In practice, browsers and most software treat example.com and example.com. as equivalent and never display the dot.

Q: What is the maximum length of an FQDN?

253 characters in the human-readable form (255 octets when encoded per RFC 1035), with each individual label limited to 63 characters.

Q: How do I find my computer's FQDN?

On Linux or macOS, run hostname -f in a terminal. On Windows, run ipconfig /all and read the "Primary DNS Suffix" field, or use the PowerShell one-liner [System.Net.Dns]::GetHostByName($env:computerName).HostName.

Q: Is localhost an FQDN?

No. localhost has no domain suffix and resolves only in local context (typically to 127.0.0.1 via /etc/hosts); it isn't globally unambiguous, so it doesn't meet the definition of a fully qualified name.

Q: Why does my SSL certificate fail with a trailing dot in the URL?

Certificate authorities never issue certificates with a dot in the Common Name or SAN fields, so if a trailing dot ends up in the TLS SNI field or HTTP Host header, the hostname won't match the certificate exactly, producing a mismatch error.

Related Guides

  • What Are Nameservers? How DNS Delegation Works
  • DNS TTL Explained: What It Is and Why It Matters
  • MX Record Explained: How Mail Routing Works
  • SSL Certificate Types Explained (DV, OV, EV, Wildcard)
Free Newsletter

Get guides like this by email

DNS, email auth, and security playbooks delivered when they publish. No spam.

On this page
  • What Is a Fully Qualified Domain Name?
  • How the FQDN Hierarchy Works
  • FQDN vs. Domain Name vs. Hostname (Reference Table)
  • How to Find Your FQDN
  • The Trailing Dot: Why It Matters
  • Common FQDN Mistakes
  • Key Takeaways
  • Frequently Asked Questions
Related links
Dns LookupNs LookupReverse DnsDns Propagation CheckerWhat Are NameserversDns Ttl Explained
Related Tools
DNS Propagation Checker→DNS Check→DNS Lookup→A Record Lookup→