What is fqdn format
Last updated: April 1, 2026
Key Facts
- FQDN format always reads from left to right, with the most specific component first
- Each part of an FQDN is called a 'label' and can contain letters, numbers, and hyphens
- Labels are separated by periods (dots) and limited to 63 characters each
- The entire FQDN cannot exceed 253 characters in length
- The rightmost label must be a valid top-level domain (TLD) like .com, .org, or .edu
Understanding FQDN Format
The FQDN format is standardized across all internet systems, ensuring consistency and compatibility. This structured approach enables computers worldwide to understand and resolve domain names consistently. The format moves from the most specific identifier (on the left) to the most general (on the right), mirroring how DNS queries propagate through the hierarchy of nameservers.
FQDN Format Breakdown
A typical FQDN consists of four main components: the hostname, subdomain levels, the domain name, and the top-level domain. The hostname is the specific resource being addressed, like a mail server or web server. Subdomain levels add organizational structure and can be multiple levels deep. The domain name is the registered second-level domain, and the TLD is the top-level extension that identifies the domain type or country.
FQDN Format Rules
- Label Length: Each label must be between 1 and 63 characters
- Total Length: Complete FQDN cannot exceed 253 characters
- Valid Characters: Letters (a-z), numbers (0-9), and hyphens (-)
- Hyphen Rules: Cannot start or end with hyphens
- Case Insensitivity: FQDNs are case-insensitive (Mail.Google.com = mail.google.com)
Examples of FQDN Format
Simple FQDN: example.com - Contains only a domain and TLD.
Subdomain FQDN: www.example.com - Adds one subdomain level.
Multi-level FQDN: mail.internal.company.example.com - Contains multiple subdomain levels for organizational purposes.
International FQDN: example.中国 - Can include internationalized domain names with non-ASCII characters.
FQDN Format in Different Contexts
Network administrators use FQDN format when configuring DNS records, setting up servers, and managing infrastructure. System administrators use FQDNs in configuration files and scripts. Email systems rely on FQDN format to identify mail servers accurately. Web developers use FQDNs to establish secure connections and create firewall rules. The consistent format ensures that all these different systems can interpret domain names uniformly.
Advanced FQDN Format Considerations
Internationalized domain names (IDNs) extend FQDN format to support non-English characters by using Punycode encoding, converting them to ASCII-compatible format. Wildcard FQDNs use asterisks (*) to match multiple subdomains in DNS records. Trailing dots in FQDNs (example.com.) indicate the root of the DNS hierarchy and are technically correct but optional in most applications.
Related Questions
What are the rules for naming FQDNs?
FQDNs must use only letters, numbers, and hyphens in each label. Labels cannot start or end with hyphens, are limited to 63 characters each, and the entire FQDN cannot exceed 253 characters. FQDNs are case-insensitive.
Why does FQDN format start with the hostname instead of the TLD?
The left-to-right format reflects how applications need to identify resources, starting with the specific host and working toward the general category. DNS queries then resolve hierarchically from right to left, starting with the TLD nameserver.
Can an FQDN contain numbers or special characters?
FQDNs can contain numbers (0-9) and hyphens, but not underscores or other special characters. Internationalized domain names allow non-ASCII characters, which are converted to ASCII-compatible Punycode format for DNS purposes.