.local
   HOME

TheInfoList



OR:

The domain name .local is a
special-use domain name A special-use domain name is a domain name that is defined and reserved in the hierarchy of the Domain Name System of the Internet for special purposes. The designation of a reserved special-use domain is authorized by the Internet Engineering Ta ...
reserved by the
Internet Engineering Task Force The Internet Engineering Task Force (IETF) is a standards organization for the Internet standard, Internet and is responsible for the technical standards that make up the Internet protocol suite (TCP/IP). It has no formal membership roster ...
(IETF) so that it may not be installed as a
top-level domain A top-level domain (TLD) is one of the domain name, domains at the highest level in the hierarchical Domain Name System of the Internet after the root domain. The top-level domain names are installed in the DNS root zone, root zone of the nam ...
in the
Domain Name System The Domain Name System (DNS) is a hierarchical and distributed name service that provides a naming system for computers, services, and other resources on the Internet or other Internet Protocol (IP) networks. It associates various information ...
(DNS) of the
Internet The Internet (or internet) is the Global network, global system of interconnected computer networks that uses the Internet protocol suite (TCP/IP) to communicate between networks and devices. It is a internetworking, network of networks ...
. As such it is similar to the other special domain names, such as .localhost. However, ''.local'' has since been designated for use in link-local networking, in applications of
multicast DNS Multicast DNS (mDNS) is a computer networking protocol that resolves hostnames to IP addresses within small networks that do not include a local name server. It is a Zero-configuration_networking#Name_service_discovery, zero-configuration service, ...
(mDNS) and
zero-configuration networking Zero-configuration networking (zeroconf) is a set of technologies that automatically creates a usable computer network based on the Internet Protocol Suite (TCP/IP) when computers or network peripherals are interconnected. It does not require manu ...
(zeroconf) so that DNS service may be established without local installations of conventional DNS infrastructure on
local area network A local area network (LAN) is a computer network that interconnects computers within a limited area such as a residence, campus, or building, and has its network equipment and interconnects locally managed. LANs facilitate the distribution of da ...
s.


Multicast DNS standard

The
Internet Engineering Task Force The Internet Engineering Task Force (IETF) is a standards organization for the Internet standard, Internet and is responsible for the technical standards that make up the Internet protocol suite (TCP/IP). It has no formal membership roster ...
(IETF) reserves the use of the domain name label ''.local'' as a
special-use domain name A special-use domain name is a domain name that is defined and reserved in the hierarchy of the Domain Name System of the Internet for special purposes. The designation of a reserved special-use domain is authorized by the Internet Engineering Ta ...
for hostnames in local area networks that can be resolved via the
Multicast DNS Multicast DNS (mDNS) is a computer networking protocol that resolves hostnames to IP addresses within small networks that do not include a local name server. It is a Zero-configuration_networking#Name_service_discovery, zero-configuration service, ...
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 , or its IPv6 equivalent . (Note that and are the same number.) A domain name ending in ''.local'' may be resolved concurrently via other mechanisms, for example, unicast DNS.


mDNS implementations

RFC 6762 was authored by
Apple Inc. Apple Inc. is an American multinational corporation and technology company headquartered in Cupertino, California, in Silicon Valley. It is best known for its consumer electronics, software, and services. Founded in 1976 as Apple Comput ...
employees
Stuart Cheshire Stuart David Cheshire is a Distinguished Engineer, Scientist and Technologist (DEST) at Apple. He pioneered Zeroconf networking while employed at Apple. Zeroconf was originally released by Apple as Rendezvous, but later renamed Bonjour. Subsequent ...
and Marc Krochmal, and Apple's Bonjour zeroconf networking software implements mDNS. That service will automatically resolve the private IP addresses of link-local Macintosh computers running
macOS macOS, previously OS X and originally Mac OS X, is a Unix, Unix-based operating system developed and marketed by Apple Inc., Apple since 2001. It is the current operating system for Apple's Mac (computer), Mac computers. With ...
and mobile devices running
iOS Ios, Io or Nio (, ; ; locally Nios, Νιός) is a Greek island in the Cyclades group in the Aegean Sea. Ios is a hilly island with cliffs down to the sea on most sides. It is situated halfway between Naxos and Santorini. It is about long an ...
if ''.local'' is appended to their hostnames. In addition, Bonjour devices will use those ''.local'' hostnames when advertising services to
DNS Service Discovery Zero-configuration networking (zeroconf) is a set of technologies that automatically creates a usable computer network based on the Internet Protocol Suite (TCP/IP) when computers or network peripherals are interconnected. It does not require manu ...
clients. Most Linux distributions also incorporate and are configured to use zeroconf. 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 The Name Service Switch (NSS) is a feature found in the standard C library of various Unix-like operating systems that connects a computer with a variety of sources of common configuration databases and name resolution mechanisms. These sources in ...
configuration file. It is also possible to configure the nss-mdns modules and Avahi to resolve hostnames with other pseudo-TLDs. Windows has some support for mDNS, which can be improved by installing zeroconf software available from Apple and other third parties. Finally, many printers and other peripheral devices also implement the mDNS protocol in order to provide simplified connections to them from computers that implement zeroconf.


Microsoft recommendations

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. Microsoft recommends against using unregistered suffixes, such as .local. At one time, Microsoft at least suggested the use of ''.local'' as a pseudo-TLD for small private networks with internal DNS servers. For example, support article 296250 included the following option: 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: 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: but later recommended against it: The Microsoft Learn article "Selecting the Forest Root Domain" cautioned against using ''.local'': By default, a freshly installed Windows Server 2016 Essentials also adds .local as the default dns-prefix when a user doesn't select the advanced option, resulting in a domain with .local extension.


Linux

Linux distributions use the
Name Service Switch The Name Service Switch (NSS) is a feature found in the standard C library of various Unix-like operating systems that connects a computer with a variety of sources of common configuration databases and name resolution mechanisms. These sources in ...
configuration file /etc/nsswitch.conf in which mDNS name resolution was added via the mdns4_minimal plugin to nsswitch. In this configuration, where mdns4_minimal precedes the standard dns option, which uses /etc/resolv.conf, the mDNS resolution will block subsequent DNS resolution on the local network.
hosts:    files mdns_minimal  OTFOUND=returndns # for ipv4 and ipv6
or
hosts:    files mdns4_minimal  OTFOUND=returndns # for ipv4 only
This is a configuration choice made by distributions such as Ubuntu/Debian and SuSE and Red Hat, each of which have their own package configuration script that will install the mdns_minimal module as above. In this way ''.local'' requests are being prevented from leaking to the internet, but also block legitimate ''.local'' requests for configured DNS servers.


Global DNS queries

As ''local'' is an officially reserved special-use domain name host names with this top-level label are not resolvable in the global
Domain Name System The Domain Name System (DNS) is a hierarchical and distributed name service that provides a naming system for computers, services, and other resources on the Internet or other Internet Protocol (IP) networks. It associates various information ...
.


References

{{DEFAULTSORT:LOCAL Domain Name System Pseudo-top-level domains sv:Toppdomän#Generiska toppdomäner