Fully qualified domain name
Template:Short description Template:Use dmy dates
A fully qualified domain name (FQDN), sometimes also called an absolute domain name,<ref name="RFC1035">Template:Cite IETF</ref> is a domain name that specifies its exact location in the tree hierarchy of the Domain Name System (DNS). It specifies all domain levels, including the top-level domain and the root zone.<ref>Template:Cite IETF</ref> A fully qualified domain name is distinguished by its unambiguous DNS zone location in the hierarchy of DNS labels: it can be interpreted only in one way.
DefinitionEdit
A fully qualified domain name is conventionally written as a list of domain labels separated using the full stop "<syntaxhighlight lang="text" class="" style="" inline="1">.</syntaxhighlight>" character (dot or period). The top of the hierarchy in an FQDN begins with the rightmost label. For instance, in the FQDN <syntaxhighlight lang="text" class="" style="" inline="1">somehost.example.com</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">com</syntaxhighlight> is a label directly under the root zone, <syntaxhighlight lang="text" class="" style="" inline="1">example</syntaxhighlight> is nested under <syntaxhighlight lang="text" class="" style="" inline="1">com</syntaxhighlight>, and finally <syntaxhighlight lang="text" class="" style="" inline="1">somehost</syntaxhighlight> is nested under <syntaxhighlight lang="text" class="" style="" inline="1">example.com</syntaxhighlight>.<ref name="rfc2181">Template:Cite IETF</ref>
The topmost layer of every domain name is the DNS root zone, which is expressed as an empty label and can be represented in an FQDN with a trailing dot, such as <syntaxhighlight lang="text" class="" style="" inline="1">somehost.example.com.</syntaxhighlight>. A trailing dot is generally implied and often omitted by most applications. Trailing dots are required by the standard format for DNS zone files, as well as to disambiguate cases where an FQDN does not contain any other label separators, such as the FQDNs for the root zone itself and any top-level domain.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
The length of each label must be between 1 and 63 octets, and the full domain name is limited to 255 octets, full stops included.<ref name="rfc2181" />
Relative domain namesEdit
A relative domain name is a domain name which does not include all labels.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> It may also be referred to as a partially-qualified domain name, or PQDN.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> Hostnames can be used as relative domain names.
UsageEdit
Dot-separated fully qualified domain names are the primarily used form for human-readable representations of a domain name. Dot-separated domain names are not used in the internal representation of labels in a DNS message<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> but are used to reference domains in some TXT records and can appear in resolver configurations, system hosts files, and URLs.
Web addresses typically use FQDNs to represent the host, as it ensures the address will be interpreted identically on any network. Relative hostnames are allowed by some protocols, including HTTP, but disallowed by others, such as the Simple Mail Transfer Protocol (SMTP).<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>
ReferencesEdit
External linksEdit
- Template:IETF RFC: Requirements for Internet Hosts – application and support
- Template:IETF RFC: A Security Problem and Proposed Correction With Widely Deployed DNS Software
- Template:IETF RFC: Clarifications to the DNS specification
- Template:IETF RFC: Resolution of Fully Qualified Domain Name (FQDN) Conflicts among Dynamic Host Configuration Protocol (DHCP) Clients