Networking device hostnames ending with .local are often employed in private networks, where they are resolved either via the multicast domain name service (mDNS) or local Domain Name System (DNS) servers. The implementation of both approaches on the same network can be problematic, however, resolving such names via unicast DNS servers has fallen into disfavor as computers, printers and other devices supporting zero-configuration networking (zeroconf) have become increasingly common.
Multicast DNS (mDNS) standard
The Internet Engineering Task Force (IETF) standards-track RFC 6762 (February 20, 2013) reserves the use of the domain name label local as a pseudo-top-level domain for hostnames in local area networks that can be resolved via the Multicast DNS name resolution protocol. Any DNS query for a name ending with the label local must be sent to the mDNS IPv4 link-local multicast address 188.8.131.52, or its IPv6 equivalent FF02::FB. Domain name ending in local, may be resolved concurrently via other mechanisms, e.g., unicast DNS.
RFC 6762 was authored by two Apple Inc. employees (Stuart Cheshire and Marc Krochmal), so it should not be surprising that Apple's Bonjour zeroconf networking software implements mDNS. That service will automatically resolve the private IP addresses of link-local Macintosh computers running MacOS and mobile devices running iOS if .local is appended to their hostnames. In addition, Bonjour devices will use those .local hostnames when advertising services to DNS Service Discovery clients.
Most Linux distributions also incorporate and are configured to use zero configuration networking. By default, each computer’s Avahi daemon will respond to mDNS hostname.local queries, and most shell commands and application program calls that attempt to resolve such names are routed to that daemon by the default hosts: line in the Name Service Switch configuration file. It is also possible to configure the nss-mdns modules and Avahi to resolve hostnames with other pseudo-TLDs.
Although Windows operating systems often do not have built-in mDNS support, it can be added by installing zeroconf software available from Apple and other third parties, and support is beginning to be added in Windows 10.
Finally, many printers and other peripheral devices also implement the mDNS protocol in order to provide simplified connections to them from computers that support zero configuration networking.
The connection of Macintosh and Linux computers or zeroconf peripherals to Windows networks can be problematic if those networks include name servers that use .local as a search domain for internal devices.
At one time, Microsoft at least suggested the use of .local as a pseudo-TLD for small private networks with internal DNS servers, via documents that (as of this writing) are still accessible. For example, support article 296250 included the following option:
Make the name a private domain name that is used for name resolution on the internal Small Business Server network. This name is usually configured with the first-level domain of .local. At the present time, the .local domain name is not registered on the Internet.
However, more recent articles have cautioned or advised against such use of the .local TLD.
Support article 300684 listed contoso.local as an example of a "best-practice Active Directory domain name", but then added:
We recommend that you register DNS names for the top-most internal and external DNS namespaces with an Internet registrar.
which would of course preclude using that or any other domain ending with .local.
Microsoft TechNet article 708159 suggested .local for the exact opposite reason:
Using the .local label for the full DNS name for the internal domain is a more secure configuration because the .local label is not registered for use on the Internet. This separates your internal domain from your public Internet domain name.
but later recommended against it:
If you have Macintosh client computers that are running the Macintosh OS X version 10.3 operating system or later, … it is recommended that you do not use the .local label for the full DNS name of your internal domain. If you must use the .local label, then you must also configure settings on the Macintosh computers so they can discover other computers on the network. For more information about how to configure client computers running Macintosh OS X version 10.3 or later, see “Connecting Macintosh Computers to a Windows Small Business Server 2003 Network” on the Microsoft Web site at .
TechNet article 726016 cautioned against using .local:
…we do not recommend using unregistered suffixes, such as .local.
Global DNS queries
As local is an officially reserved special-use domain name (RFC 6762 of February 2013) host names with this top level label are not resolvable in the global Domain Name System. However, a considerable proportion of the queries submitted to it do specify the domain.
- Statistics for the L root name server operated by ICANN are available from root-servers.org.
- As of August 14, 2015, that server received approximately 1331 local queries per second, third in frequency after com (4355 queries/s), and net (2481 queries/s), or sixth including the invalid gTLDs www (First, with 9416 queries/s), html (third, with 2727 queries/s), and home (fifth, with 1692 queries/s).
- As of April 12, 2013, that server has received approximately 2300 local queries/s, fourth in frequency after com, net, and org.
- Historical data from that site are available via the Wayback Machine. In June 2009, for example, the L server received an average of 400 such queries/s, fourth after com, arpa, and net.
- Cheshire, Stuart & Krochmal, Marc. "RFC 6762: Multicast DNS". Internet Engineering Task Force.
- "Domain Name System name recommendations for Small Business Server 2000 and Windows Small Business Server 2003". support.microsoft.com. 2007-12-03.
Three practical methods to name the DNS domain are: [1/3] [...] private domain name that is used for name resolution on the internal Small Business Server network. [...] usually [...] first-level domain of .local. [...] [2/3] Make the name a sub-domain of a publicly registered domain name. For example, if the publicly registered domain name is Contoso.com, a sub-domain of Corp.contoso.com can be used. [3/3] Make the name the same as a publicly registered domain name. [...] Most Small Business Server customers should use the first method.
- "Information about configuring Active Directory domains by using single-label DNS names". support.microsoft.com.
- "Internal Domain Information (OEM)". Windows Small Business Server 2003 product documentation. technet.microsoft.com.
[...] it is strongly recommended that you use the .local label for the extension. [...] If your Windows Small Business Server network contains client computers running Mac OS X 10.2 or later, change the .local label for the default domain name to a label other than .local. For example, use .lan or .office as the label.
- "Selecting the Forest Root Domain". technet.microsoft.com. 2012-04-26. Retrieved 2016-01-19.
To select a suffix for the forest root domain: [...] We recommend that you use DNS names that are registered with an Internet authority in the Active Directory namespace. Only registered names are guaranteed to be globally unique. [...] Caution [...] Do not use single-label DNS names. [...] Also, we do not recommend using unregistered suffixes, such as .local.
- "Special-Use Domain Names". Internet Assigned Numbers Authority.
- "RFC 6762: Multicast DNS". IETF. 2013-02-20.
- "Datatracker history for RFC 6762". IETF.
2013-02-20 [...] RFC published [...] 2001-07-17 [first draft published as:] draft-cheshire-dnsext-multicastdns-00.txt
- George Kirikos. "Most Popular Invalid TLDs Should Be Reserved". Circle ID. Archived from the original on 21 June 2009. Retrieved 2013-04-12.
- ICANN.org Archived September 9, 2015, at the Wayback Machine.
- "Most Popular TLDs Queried". root-servers.org. Archived from the original on 2009-09-16.