Domain Name System: Difference between revisions
Matt Darby (talk | contribs) m Readability |
m v2.05b - Bot T19 CW#25 - Fix errors for CW project (Heading hierarchy) |
||
Line 1: | Line 1: | ||
{{Short description|System to identify resources on a network}} |
|||
{{Cleanup|date=October 2007}} |
|||
{{redirect|DNS}} |
|||
{{Refimprove|date=December 2007}} |
|||
{{Use American English|date = February 2019}} |
|||
The '''Domain Name System''' (DNS) is a hierarchical naming system for computers, services, or any resource participating in the [[Internet]]. It associates various information with [[domain name]]s assigned to such participants. Most importantly, it translates alpha-numeric, human readable domain names to the numerical (binary) identifiers associated with networking equipment for the purpose of locating and addressing these devices world-wide. |
|||
{{Infobox networking protocol |
|||
| title = Domain Name Service |
|||
| logo = |
|||
| logo alt = |
|||
| image = |
|||
| image alt = |
|||
| caption = |
|||
| is stack = |
|||
| abbreviation = DNS |
|||
| purpose = To identity resources on networks |
|||
| developer = |
|||
| date = {{Start date and age|1983|11| }} |
|||
| based on = |
|||
| influenced = |
|||
| osilayer = [[Application layer]] |
|||
| ports = 53 |
|||
| rfcs = RFC 1034, RFC 1035 |
|||
| hardware = |
|||
}} |
|||
{{IPstack}} |
|||
{{Internet history timeline}} |
|||
The '''Domain Name System''' ('''DNS''') is a hierarchical and distributed [[name service]] that provides a naming system for [[computer]]s, services, and other resources on the Internet or other [[Internet Protocol]] (IP) networks. It associates various information with ''[[domain name]]s'' ([[identification (information)|identification]] [[String (computer science)|strings]]) assigned to each of the associated entities. Most prominently, it translates readily memorized domain names to the numerical [[IP address]]es needed for locating and identifying computer services and devices with the underlying [[network protocol]]s.<ref>{{Cite journal |last1=Wu |first1=Hao |last2=Dang |first2=Xianglei |last3=Wang |first3=Lidong |last4=He |first4=Longtao |date=2016 |title=Information fusion-based method for distributed domain name system cache poisoning attack detection and identification |url=https://onlinelibrary.wiley.com/doi/10.1049/iet-ifs.2014.0386 |journal=IET Information Security |language=en |volume=10 |issue=1 |pages=37–44 |doi=10.1049/iet-ifs.2014.0386 |s2cid=45091791 |issn=1751-8717}}</ref> The Domain Name System has been an essential component of the functionality of the Internet since 1985. |
|||
An often used analogy to explain the Domain Name System is that it serves as the "[[telephone directory|phone book]]" for the Internet by translating human-friendly computer [[hostname]]s into [[IP address]]es. For example, ''[[example.com|www.example.com]]'' translates to ''208.77.188.166''. |
|||
The Domain Name System delegates the responsibility of assigning domain names and mapping those names to Internet resources by designating [[authoritative name server]]s for each domain. Network administrators may delegate authority over [[subdomain]]s of their allocated name space to other name servers. This mechanism provides distributed and [[fault-tolerant]] service and was designed to avoid a single large central database. In addition, the DNS specifies the technical functionality of the [[Database model|database]] service that is at its core. It defines the DNS protocol, a detailed specification of the data structures and data communication exchanges used in the DNS, as part of the [[Internet protocol suite]]. |
|||
The Domain Name System makes it possible to assign [[domain name]]s to groups of Internet users in a meaningful way independent of each user's physical location. Because of this, [[World-Wide Web]] (WWW) [[hyperlinks]] and Internet contact information can remain consistent and constant even if the current Internet routing arrangements change or the participant uses a mobile device. Internet domain names are easier to remember than IP addresses such as <tt>208.77.188.166</tt> or <tt>2001:db8:1f70::999:de8:7648:6e8</tt>. People take advantage of this when they recite meaningful [[Uniform Resource Locator|URL]]s and [[e-mail address]]es without caring how the machine will actually locate them. |
|||
The Internet maintains two principal [[namespace]]s, the domain name hierarchy and the IP [[address space]]s.<ref name="rfc781">RFC 781, ''Internet Protocol - DARPA Internet Program Protocol Specification'', Information Sciences Institute, J. Postel (Ed.), The Internet Society (September 1981)</ref> The Domain Name System maintains the domain name hierarchy and provides translation services between it and the address spaces. Internet name servers and a [[communication protocol]] implement the Domain Name System. A DNS name server is a server that stores the DNS records for a domain; a DNS name server responds with answers to queries against its database. |
|||
The Domain Name System distributes the responsibility for assigning domain names and mapping them to [[Internet Protocol]] (IP) networks by designating [[authoritative name server]]s for each domain to keep track of their own changes, avoiding the need for a central register to be continually consulted and updated. |
|||
The most common types of records stored in the DNS database are for start of authority ([[SOA record|SOA]]), IP addresses ([[List of DNS record types#A|A]] and [[AAAA record|AAAA]]), [[SMTP]] [[mail exchanger]]s (MX), name servers (NS), pointers for [[reverse DNS lookup]]s (PTR), and [[domain name alias]]es (CNAME). Although not intended to be a general purpose database, DNS has been expanded over time to store records for other types of data for either automatic lookups, such as [[DNSSEC]] records, or for human queries such as ''responsible person'' (RP) records. As a general purpose database, the DNS has also been used in combating [[unsolicited email]] (spam) by storing a [[real-time blackhole list]] (RBL). The DNS database is traditionally stored in a structured text file, the [[zone file]], but other database systems are common. |
|||
In general, the Domain Name System also stores other types of information, such as the list of [[mail server]]s that accept [[email]] for a given Internet domain. By providing a world-wide, distributed [[keyword]]-based redirection service, the Domain Name System is an essential component of the functionality of the [[Internet]]. |
|||
The Domain Name System originally used the [[User Datagram Protocol]] (UDP) as transport over IP. Reliability, security, and privacy concerns spawned the use of the [[Transmission Control Protocol]] (TCP) as well as numerous other protocol developments. |
|||
Other identifiers such as RFID tags, UPC codes, International characters in email addresses and host names, and a variety of other identifiers could all potentially utilize DNS <ref>{{cite web| last = Mockapetris| first = Paul| title = Letting DNS Loose| publisher = CircleID| url = http://www.circleid.com/posts/letting_dns_loose/|date=2004-01-02}}</ref>. |
|||
==Function== |
|||
The Domain Name System also defines the technical underpinnings of the functionality of this database service. For this purpose it defines the DNS [[network protocol|protocol]], a detailed specification of the data structures and communication exchanges used in DNS, as part of the [[Internet Protocol Suite]] (TCP/IP). The context of the DNS within the Internet protocols may be seen in the following diagram. The DNS protocol was developed and defined in the early 1980's and published by the [[Internet Engineering Task Force]] (cf. History). |
|||
An often-used analogy to explain the DNS is that it serves as the [[telephone directory|phone book]] for the Internet by translating human-friendly computer [[hostname]]s into IP addresses. For example, the hostname <code>www.example.com</code> within the domain name [[example.com]] translates to the addresses {{IPaddr|93.184.216.34}} ([[IPv4]]) and {{IPaddr|2606:2800:220:1:248:1893:25c8:1946}} ([[IPv6]]). The DNS can be quickly and transparently updated, allowing a service's location on the network to change without affecting the end users, who continue to use the same hostname. Users take advantage of this when they use meaningful Uniform Resource Locators ([[URL]]s) and [[e-mail address]]es without having to know how the computer actually locates the services. |
|||
{{IPstack}} |
|||
== History == |
|||
The practice of using a name as a more human-legible abstraction of a machine's numerical address on the network predates even [[TCP/IP]]. This practice dates back to the [[ARPAnet]] era. Back then, a different system was used. The DNS was invented in 1983, shortly after TCP/IP was deployed. With the older system, each computer on the network retrieved a file called ''HOSTS.TXT'' from a computer at SRI (now [[SRI International]])<ref>{{cite web|url= http://www.lagunainternet.com/techsupport/history_of_dns.htm |title= History of the DNS|accessdate= 2008-04-29}}</ref><ref> |
|||
{{cite web |
|||
|url=http://books.google.co.uk/books?id=zkZN52WhG8sC&pg=PA3&lpg=PA3&dq=sri+HOSTS.TXT&source=web&ots=wuZ79E-zJ2&sig=btF0Z2nclOnX_UgNj7a1f5S7Uqg&hl=en |title=DNS & BIND |
|||
|accessdate= 2008-04-29 |
|||
|author= Cricket Liu, Paul Albitz |
|||
|publisher=O'Reilly (shown via Google Books) |
|||
}}</ref>. The HOSTS.TXT file mapped numerical addresses to names. A [[hosts file]] still exists on most modern operating systems, either by default or through configuration, and allows users to specify an [[IP address]] (eg. 208.77.188.166) to use for a [[hostname]] (eg. [[Example.net|www.example.net]]) without checking DNS. Systems based on a hosts file have inherent limitations, because of the obvious requirement that every time a given computer's address changed, every computer that seeks to communicate with it would need an update to its hosts file. |
|||
An important and [[Ubiquitous computing|ubiquitous]] function of the DNS is its central role in distributed Internet services such as [[cloud service]]s and [[content delivery network]]s.<ref>J. Dilley, B. Maggs, J. Parikh, H. Prokop, R. Sitaraman, and B. Weihl. {{cite web | url=https://people.cs.umass.edu/~ramesh/Site/PUBLICATIONS_files/DMPPSW02.pdf |archive-url=https://web.archive.org/web/20150417121338/http://people.cs.umass.edu/~ramesh/Site/PUBLICATIONS_files/DMPPSW02.pdf |archive-date=2015-04-17 |url-status=live| title =Globally Distributed Content Delivery, IEEE Internet Computing, September/October 2002, pp. 50–58}}</ref> When a user accesses a distributed Internet service using a URL, the domain name of the [[URL]] is translated to the IP address of a server that is proximal to the user. The key functionality of the DNS exploited here is that different users can ''simultaneously'' receive different translations for the ''same'' domain name, a key point of divergence from a traditional phone-book view of the DNS. This process of using the DNS to assign proximal servers to users is key to providing faster and more reliable responses on the Internet and is widely used by most major Internet services.<ref>{{cite journal |author1=Nygren., E. |author2=Sitaraman R. K. |author3=Sun, J. |title= The Akamai Network: A Platform for High-Performance Internet Applications |journal=ACM SIGOPS Operating Systems Review |volume=44 |issue=3 |year=2010 |pages=2–19 |doi=10.1145/1842733.1842736 |s2cid=207181702 |url=http://www.akamai.com/dl/technical_publications/network_overview_osr.pdf |archive-url=https://web.archive.org/web/20101202153338/http://www.akamai.com/dl/technical_publications/network_overview_osr.pdf |archive-date=2010-12-02 |url-status=live |access-date=November 19, 2012 }}</ref> |
|||
The growth of networking required a more scalable system that recorded a change in a host's address in one place only. Other hosts would learn about the change dynamically through a notification system, thus completing a globally accessible network of all hosts' names and their associated IP Addresses. |
|||
The DNS reflects the structure of administrative responsibility on the Internet.<ref name="rfc1035" /> Each subdomain is a [[DNS zone|zone]] of administrative autonomy delegated to a manager. For zones operated by a [[Domain name registry|registry]], administrative information is often complemented by the registry's [[Registration Data Access Protocol|RDAP]] and [[WHOIS]] services. That data can be used to gain insight on, and track responsibility for, a given host on the Internet.<ref>{{cite web |url=https://conference.apnic.net/data/39/dns-abuse-handling-final_1425362607.pdf |archive-url=https://web.archive.org/web/20151222094305/https://conference.apnic.net/data/39/dns-abuse-handling-final_1425362607.pdf |archive-date=2015-12-22 |url-status=live |title=DNS Abuse Handling |author1=Champika Wijayatunga |date=February 2015 |publisher=[[Asia-Pacific Network Information Centre|APNIC]] |access-date=18 December 2016 }}</ref> |
|||
At the request of [[Jon Postel]], [[Paul Mockapetris]] invented the Domain Name system in 1983 and wrote the first implementation. The original specifications appear in RFC 882 and RFC 883. In [[November 1987]], the publication of RFC 1034 and RFC 1035 updated the DNS specification and made RFC 882 and RFC 883 obsolete. Several more-recent [[Request for Comments|RFCs]] have proposed various extensions to the core DNS protocols. |
|||
==History== |
|||
In [[1984]], four [[University of California, Berkeley|Berkeley]] students—Douglas Terry, Mark Painter, David Riggle and Songnian Zhou—wrote the first [[Unix|UNIX]] implementation, which was maintained by Ralph Campbell thereafter. In 1985, Kevin Dunlap of [[Digital Equipment Corporation|DEC]] significantly re-wrote the DNS implementation and renamed it [[BIND]]—Berkeley Internet Name Domain. Mike Karels, Phil Almquist and [[Paul Vixie]] have maintained BIND since then. BIND was [[porting|ported]] to the [[Windows NT]] platform in the early 1990s. |
|||
Using a simpler, more memorable name in place of a host's numerical address dates back to the [[ARPANET]] era. The Stanford Research Institute (now [[SRI International]]) maintained a text file named [[hosts (file)|HOSTS.TXT]] that mapped host names to the numerical addresses of computers on the ARPANET.{{Ref RFC|3467}}<ref>{{cite book |
|||
|title = DNS and BIND |
|||
|edition = 5th |
|||
|page = 3 |
|||
|year = 2006 |
|||
|first1 =Cricket |last1=Liu |first2=Paul |last2=Albitz |
|||
|publisher = O'Reilly Media |
|||
|isbn = 978-0-596-10057-5 |
|||
}}</ref> [[Elizabeth J. Feinler|Elizabeth Feinler]] developed and maintained the first ARPANET directory.{{Sfn|Evans|2018|p=112}}{{Sfn|Evans|2018|p=113}} Maintenance of numerical addresses, called the Assigned Numbers List, was handled by [[Jon Postel]] at the [[University of Southern California]]'s [[Information Sciences Institute]] (ISI), whose team worked closely with SRI.<ref>IEEE Annals [3B2-9] man2011030074.3d 29/7/011 11:54 Page 74</ref> |
|||
Addresses were assigned manually. Computers, including their hostnames and addresses, were added to the primary file by contacting the SRI [[InterNIC|Network Information Center]] (NIC), directed by Feinler, via [[telephone]] during business hours.<ref name="internethalloffame.org">{{cite web|url=http://internethalloffame.org/blog/2012/07/23/why-does-net-still-work-christmas-paul-mockapetris|title=Why Does the Net Still Work on Christmas? Paul Mockapetris - Internet Hall of Fame|website=internethalloffame.org|date=23 July 2012 }}</ref> Later, Feinler set up a [[WHOIS]] directory on a server in the NIC for retrieval of information about resources, contacts, and entities.{{Sfn|Evans|2018|p=119}} She and her team developed the concept of domains.{{Sfn|Evans|2018|p=119}} Feinler suggested that domains should be based on the location of the physical address of the computer.{{Sfn|Evans|2018|p=120}} Computers at educational institutions would have the domain ''[[.edu|edu]]'', for example.{{Sfn|Evans|2018|p=120–121}} She and her team managed the Host Naming Registry from 1972 to 1989.<ref>{{Cite web|url=https://www.internethalloffame.org/inductees/elizabeth-feinler|title=Elizabeth Feinler|website=Internet Hall of Fame|archive-url=https://web.archive.org/web/20180914182353/https://www.internethalloffame.org/inductees/elizabeth-feinler|archive-date=14 September 2018|access-date=2018-11-25}}</ref> |
|||
BIND was widely distributed, especially on Unix systems, and is the dominant DNS software in use on the Internet.<ref>http://mydns.bboy.net/survey/ DNS Server Survey</ref> With the heavy use and resulting scrutiny of its open-source code, as well as increasingly more sophisticated attack methods, many security flaws were discovered in BIND. This contributed to the development of a number [[Comparison of DNS server software|alternative nameserver and resolver programs]]. BIND itself was re-written from scratch in version 9, which has a security record comparable to other modern Internet software. |
|||
By the early 1980s, maintaining a single, centralized host table had become slow and unwieldy and the emerging network required an automated naming system to address technical and personnel issues. Postel directed the task of forging a compromise between five competing proposals of solutions to [[Paul Mockapetris]]. Mockapetris instead created the Domain Name System in 1983 while at the [[University of Southern California]].<ref name="internethalloffame.org"/><ref>{{Cite web|url=https://internethalloffame.org/inductees/paul-mockapetris|title=Paul Mockapetris {{!}} Internet Hall of Fame|website=internethalloffame.org|access-date=2020-02-12}}</ref> |
|||
== Structure == |
|||
=== The domain name space === |
|||
[[Image:Domain name space.svg|right|thumb|400px|Domain names, arranged in a tree, cut into zones, each served by a nameserver.]] |
|||
The [[Internet Engineering Task Force]] published the original specifications in RFC 882 and RFC 883 in November 1983.<ref>{{cite web |url=http://www.internetsociety.org/blog/2013/11/happy-30th-birthday-dns |title=Happy 30th Birthday, DNS! |author1=Andrei Robachevsky |date=26 November 2013 |publisher=[[Internet Society]] |access-date=18 December 2015 }}</ref><ref>Elizabeth Feinler, IEEE Annals, 3B2-9 man2011030074.3d 29/7/011 11:54 Page 74</ref> These were updated in RFC 973 in January 1986. |
|||
The domain name space consists of a [[tree data structure|tree]] of domain names. Each node or leaf in the tree has zero or more ''resource records'', which hold information associated with the domain name. The tree sub-divides into ''zones'' beginning at the [[DNS root zone|root zone]]. A [[DNS zone]] consists of a collection of connected nodes authoritatively served by an ''authoritative DNS nameserver''. (Note that a single nameserver can host several zones.) |
|||
In 1984, four [[University of California, Berkeley|UC Berkeley]] students, Douglas Terry, Mark Painter, David Riggle, and Songnian Zhou, wrote the first [[Unix]] [[name server]] implementation for the Berkeley Internet Name Domain, commonly referred to as [[BIND]].<ref name="Terry USENIX 2004">{{cite conference |
|||
When a system administrator wants to let another administrator control a part of the domain name space within the first administrator’s zone of authority, control can be delegated to the second administrator. This splits off a part of the old zone into a new zone, which comes under the authority of the second administrator's nameservers. The old zone ceases to be authoritative for the new zone. |
|||
|author=Terry, Douglas B. |
|||
|url=http://www.eecs.berkeley.edu/Pubs/TechRpts/1984/5957.html |
|||
|title=The Berkeley Internet Name Domain Server |
|||
|book-title=Summer Conference, Salt Lake City 1984: Proceedings |
|||
|conference=USENIX Association Software Tools Users Group |
|||
|date=June 12–15, 1984 |
|||
|pages=23–31|display-authors=etal}}</ref> In 1985, Kevin Dunlap of [[Digital Equipment Corporation|DEC]] substantially revised the DNS implementation. [[Michael J. Karels|Mike Karels]], Phil Almquist, and [[Paul Vixie]] then took over BIND maintenance. [[Internet Systems Consortium]] was founded in 1994 by [[Rick Adams (Internet pioneer)|Rick Adams]], [[Paul Vixie]], and [[Carl Malamud]], expressly to provide a home for BIND development and maintenance. BIND versions from 4.9.3 onward were developed and maintained by ISC, with support provided by ISC's sponsors. As co-architects/programmers, Bob Halley and Paul Vixie released the first production-ready version of BIND version 8 in May 1997. Since 2000, over 43 different core developers have worked on BIND.<ref name="BIND Home Page">{{cite web |author=Internet Systems Consortium |title=The History of BIND |url=https://www.isc.org/bindhistory/ |url-status=live |access-date=4 April 2022 |at=History of BIND|archive-url=https://web.archive.org/web/20190630142752/https://www.isc.org/bindhistory/ |archive-date=2019-06-30 }}</ref> |
|||
In November 1987, RFC 1034<ref name="rfc1034">{{cite IETF |title=Domain Names - Domain Concepts and Facilities |rfc=1034 |last1=Mockapetris |first1=Paul |date=November 1987 |publisher=[[Internet Engineering Task Force|IETF]]}}</ref> and RFC 1035<ref name="rfc1035">{{cite IETF |title=Domain Names - Implementation and Specification |rfc=1035 |last1=Mockapetris |first1=Paul |date=November 1987 |publisher=[[Internet Engineering Task Force|IETF]]}}</ref> superseded the 1983 DNS specifications. Several additional [[Request for Comments]] have proposed extensions to the core DNS protocols.<ref name="rfc7719">{{cite IETF |title=DNS Terminology |rfc=7719 |author1=Paul Hoffman |author2=Andrew Sullivan |author3=Kazunori Fujiwara |date=December 2015 |publisher=[[Internet Engineering Task Force|IETF]] |access-date=18 December 2015 }}</ref> |
|||
=== Parts of a domain name === |
|||
A [[domain name]] usually consists of two or more parts (technically a '''label'''), which is conventionally written separated by dots, such as <tt>example.com</tt>. |
|||
* The rightmost label conveys the [[top-level domain]] (for example, the address <tt>www.example.com</tt> has the top-level domain <tt>com</tt>). |
|||
* Each label to the left specifies a subdivision, or [[subdomain]] of the domain above it. Note: “subdomain” expresses relative dependence, not absolute dependence. For example: <tt>example.com</tt> is a subdomain of the <tt>com</tt> domain, and <tt>www.example.com</tt> is a subdomain of the domain <tt>example.com</tt>. In theory, this subdivision can go down 127 levels. Each label can contain up to 63 [[octet (computing)|octet]]s. The whole domain name may not exceed a total length of 253 octets. <ref>[http://www.ops.ietf.org/lists/namedroppers/namedroppers.2003/msg00964.html What is the maximum length of a domain name?] on the [[IETF]] DNSOP working group mailing list. On the wire, in the DNS binary format, it can be at most 255 octets as per RFC 1034 section 3.1. For an all-ASCII hostname, this can be represented in traditional dot notation as 253 characters.</ref> In practice, some [[domain name registry|domain registries]] may have shorter limits. |
|||
* A [[hostname]] refers to a domain name that has one or more associated IP addresses; ie: the '<tt>www.example.com</tt>' and '<tt>example.com</tt>' domains are both hostnames, however, the '<tt>com</tt>' domain is not. |
|||
==Structure {{anchor|The domain name space}}== |
|||
=== DNS servers === |
|||
===Domain name space=== |
|||
{{main|Name server}} |
|||
The domain name space consists of a [[Tree (data structure)|tree data structure]]. Each node or leaf in the tree has a ''label'' and zero or more ''resource records'' (RR), which hold information associated with the domain name. The domain name itself consists of the label, concatenated with the name of its parent node on the right, separated by a dot.<ref name=dnsterms>{{cite IETF |title=Domain Names - Domain Concepts and Facilities |rfc=1034 |sectionname=Name space specifications and terminology |section=3.1 |author1=Paul Mockapetris |date=November 1987 |publisher=[[Internet Engineering Task Force|IETF]] |access-date=17 December 2015 }}</ref> |
|||
The Domain Name System is maintained by a distributed database system, which uses the [[client-server]] model. The nodes of this database are the name servers. Each domain or subdomain has one or more authoritative DNS servers that publish information about that domain and the name servers of any domains subordinate to it. The top of the hierarchy is served by the [[root nameserver]]s: the servers to query when looking up (''resolving'') a top-level domain name ([[Top-level domain|TLD]]). |
|||
The tree sub-divides into ''zones'' beginning at the [[DNS root zone|root zone]]. A [[DNS zone]] may consist of as many domains and subdomains as the zone manager chooses. DNS can also be partitioned according to ''class'' where the separate classes can be thought of as an array of parallel namespace trees.<ref name=dnsparts>{{cite IETF |title=Domain Names - Domain Concepts and Facilities |rfc=1034 |sectionname=How the database is divided into zones |section=4.2 |author1=Paul Mockapetris |date=November 1987 |publisher=[[Internet Engineering Task Force|IETF]] |access-date=17 December 2015 }}</ref> |
|||
=== DNS resolvers === |
|||
{{see also|resolv.conf}} |
|||
The client-side of the DNS is called a DNS resolver. It is responsible for initiating and sequencing the queries that ultimately lead to a full resolution (translation) of the resource sought, e.g., translation of a domain name into an IP address. |
|||
[[Image:Domain name space.svg|right|thumb|400px|The hierarchical Domain Name System for class ''Internet'', organized into zones, each served by a name server]] |
|||
A DNS query may be either a recursive query or a non-recursive query: |
|||
* A ''non-recursive query'' is one in which the DNS server may provide a partial answer to the query (or give an error). |
|||
* A ''recursive query'' is one where the DNS server will fully answer the query (or give an error). DNS servers are not required to support recursive queries. |
|||
Administrative responsibility for any zone may be divided by creating additional zones. Authority over the new zone is said to be ''delegated'' to a designated name server. The parent zone ceases to be authoritative for the new zone.<ref name=dnsparts/> |
|||
The resolver (or another DNS server acting recursively on behalf of the resolver) negotiates use of recursive service using bits in the query headers. |
|||
===Domain name syntax, internationalization=== |
|||
Resolving usually entails iterating through several name servers to find the needed information. However, some resolvers function simplistically and can communicate only with a single name server. These simple resolvers rely on a recursive query to a recursive name server to perform the work of finding information for them. |
|||
The definitive descriptions of the rules for forming domain names appear in RFC 1035, RFC 1123, RFC 2181, and RFC 5892. A [[domain name]] consists of one or more parts, technically called ''labels'', that are conventionally [[concatenated]], and delimited by dots, such as example.com. |
|||
The right-most label conveys the [[top-level domain]]; for example, the domain name www.example.com belongs to the top-level domain ''com''. |
|||
=== Address resolution mechanism === |
|||
:''(This description deliberately uses the fictional [[.example]] TLD in accordance with the DNS guidelines.)'' |
|||
The hierarchy of domains descends from right to left; each label to the left specifies a subdivision, or [[subdomain]] of the domain to the right. For example, the label ''example'' specifies a subdomain of the ''com'' domain, and ''www'' is a subdomain of example.com. This tree of subdivisions may have up to 127 levels.<ref>{{Cite book|title=International Domain Name Law: ICANN and the UDRP|last=Lindsay|first=David|publisher=Bloomsbury Publishing|year=2007|isbn=978-1-84113-584-7|pages=8}}</ref> |
|||
In ''theory'' a full host name may have several name segments, (e.g ''ahost.ofasubnet.ofabiggernet.inadomain.example''). In practice, full host names will frequently consist of just three segments (''ahost.inadomain.example'', and most often www''.inadomain.example''). For querying purposes, software interprets the name segment by segment, from right to left, using an iterative search procedure. At each step along the way, the program queries a corresponding DNS server to provide a pointer to the next server which it should consult. |
|||
A label may contain zero to 63 characters, because the length is only allowed to take 6 bits. The null label of length zero is reserved for the root zone. The full domain name may not exceed the length of 253 characters in its textual representation (or 254 with the trailing dot).<ref name=rfc1034/> In the internal binary representation of the DNS this maximum length of 253 requires 255 octets of storage, as it also stores the length of the first of many labels and adds last null byte.<ref name=rfc1035/> 255 length is only achieved with at least 6 labels (counting the last null label).{{Citation needed|date=November 2024}} |
|||
[[Image:An example of theoretical DNS recursion.svg|right|thumb|400px|A DNS recursor consults three nameservers to resolve the address www.wikipedia.org.]] |
|||
Although no technical limitation exists to prevent domain name labels from using any character that is representable by an octet, hostnames use a preferred format and character set. The characters allowed in labels are a subset of the [[ASCII]] character set, consisting of characters ''a'' through ''z'', ''A'' through ''Z'', digits ''0'' through ''9'', and hyphen. This rule is known as the ''LDH rule'' (letters, digits, hyphen). Domain names are interpreted in a case-independent manner.{{Ref RFC|4343}} Labels may not start or end with a hyphen.{{Ref RFC|3696}} An additional rule requires that top-level domain names should not be all-numeric.<ref name=rfc3696 /> |
|||
As originally envisaged, the process was as simple as: |
|||
# the local system is pre-configured with the known addresses of the [[root nameserver|root servers]] in a file of ''root hints'', which need to be updated periodically by the local administrator from a reliable source to be kept up to date with the changes which occur over time. |
|||
# query one of the root servers to find the server authoritative for the next level down (so in the case of our simple hostname, a root server would be asked for the address of a server with detailed knowledge of the ''example'' top level domain). |
|||
# querying this second server for the address of a DNS server with detailed knowledge of the second-level domain (''inadomain.example'' in our example). |
|||
# repeating the previous step to progress down the name, until the final step which would, rather than generating the address of the next DNS server, return the final address sought. |
|||
The limited set of ASCII characters permitted in the DNS prevented the representation of names and words of many languages in their native alphabets or scripts. To make this possible, [[ICANN]] approved the [[Internationalized domain name|Internationalizing Domain Names in Applications]] (IDNA) system, by which user applications, such as web browsers, map [[Unicode]] strings into the valid DNS character set using [[Punycode]]. In 2009, ICANN approved the installation of internationalized domain name [[Country code top-level domain|country code top-level domains (''ccTLD''s)]]. In addition, many [[domain name registry|registries]] of the existing top-level domain names ([[Top-level domain|''TLD'']]s) have adopted the IDNA system, guided by RFC 5890, RFC 5891, RFC 5892, RFC 5893. |
|||
The diagram illustrates this process for the real host www.wikipedia.org. |
|||
===Name servers=== |
|||
The mechanism in this simple form has a difficulty: it places a huge operating burden on the root servers, with every search for an address starting by querying one of them. Being as critical as they are to the overall function of the system, such heavy use would create an insurmountable bottleneck for trillions of queries placed every day. In practice [[#Caching_and_time_to_live|caching]] is used to overcome this problem, and in actual fact root nameservers deal with very little of the total traffic. |
|||
The Domain Name System is maintained by a [[distributed database]] system, which uses the [[client–server model]]. The nodes of this database are the [[name server]]s. Each domain has at least one authoritative DNS server that publishes information about that domain and the name servers of any domains subordinate to it. The top of the hierarchy is served by the [[root name server]]s, the servers to query when looking up (''resolving'') a [[Top-level domain|TLD]]. |
|||
====Authoritative name server==== |
|||
=== Circular dependencies and glue records === |
|||
An ''authoritative'' name server is a name server that only gives [[Name server#Authoritative answer|answers]] to DNS queries from data that have been configured by an original source, for example, the domain administrator or by dynamic DNS methods, in contrast to answers obtained via a query to another name server that only maintains a cache of data. |
|||
Name servers in delegations appear listed by name, rather than by IP address. This means that a resolving name server must issue another DNS request to find out the IP address of the server to which it has been referred. Since this can introduce a [[circular dependency]] if the nameserver referred to is under the domain that it is authoritative of, it is occasionally necessary for the nameserver providing the delegation to also provide the IP address of the next nameserver. This record is called a ''glue record''. |
|||
An authoritative name server can either be a ''primary'' server or a ''secondary'' server. Historically the terms [[Master/slave (technology)|''master/slave'']] and ''primary/secondary'' were sometimes used interchangeably<ref>{{Cite journal|last1=Fujiwara|first1=Kazunori|last2=Sullivan|first2=Andrew|last3=Hoffman|first3=Paul|title=DNS Terminology|url=https://www.rfc-editor.org/rfc/rfc9499.html#section-6-4.42|access-date=2024-07-01|website=tools.ietf.org|year=2024 |doi=10.17487/RFC9499 |language=en}}</ref> but the current practice is to use the latter form. A primary server is a server that stores the original copies of all zone records. A secondary server uses a special [[AXFR|automatic updating mechanism]] in the DNS protocol in communication with its primary to maintain an identical copy of the primary records. |
|||
For example, assume that the sub-domain en.wikipedia.org contains further sub-domains (such as <tt>something.en.wikipedia.org</tt>) and that the [[authoritative name server]] for these lives at <tt>ns1.something.en.wikipedia.org</tt>. A computer trying to resolve <tt>something.en.wikipedia.org</tt> will thus first have to resolve <tt>ns1.something.en.wikipedia.org</tt>. Since <tt>ns1</tt> is also under the <tt>something.en.wikipedia.org</tt> subdomain, resolving <tt>ns1.something.en.wikipedia.org</tt> requires resolving <tt>something.en.wikipedia.org</tt> which is exactly the circular dependency mentioned above. The dependency is broken by the glue record in the nameserver of <tt>en.wikipedia.org</tt> that provides the IP address of <tt>ns1.something.en.wikipedia.org</tt> directly to the requestor, enabling it to [[bootstrapping (computing)|bootstrap]] the process by figuring out where <tt>ns1.something.en.wikipedia.org</tt> is located. |
|||
Every DNS zone must be assigned a set of authoritative name servers. This set of servers is stored in the parent domain zone with name server (NS) records. |
|||
== In practice == |
|||
When an application (such as a [[web browser]]) tries to find the IP address of a domain name, it doesn't necessarily follow all of the steps outlined in the ''Theory'' section above. We will first look at the concept of caching, and then outline the operation of DNS in "the real world." |
|||
An authoritative server indicates its status of supplying definitive answers, deemed ''authoritative'', by setting a protocol flag, called the "''Authoritative Answer''" (''AA'') [[bit]] in its responses.<ref name="rfc1035" /> This flag is usually reproduced prominently in the output of DNS administration query tools, such as [[Domain Information Groper|dig]], to indicate ''that the responding name server is an authority for the domain name in question.''<ref name="rfc1035" /> |
|||
=== Caching and time to live === |
|||
Because of the huge volume of requests generated by a system like DNS, the designers wished to provide a mechanism to reduce the load on individual DNS servers. To this end, the DNS resolution process allows for ''caching'' (i.e. the local recording and subsequent consultation of the results of a DNS query) for a given period of time after a successful answer. How long a resolver caches a DNS response (i.e. how long a DNS response remains ''valid'') is determined by a value called the [[Time to live|time to live (TTL)]]. The TTL is set by the administrator of the DNS server handing out the response. The period of validity may vary from just seconds to days or even weeks. |
|||
When a name server is designated as the authoritative server for a domain name for which it does not have authoritative data, it presents a type of error called a "lame delegation" or "lame response".<ref>{{Cite book|last1=Nemeth|first1=Evi|url=https://books.google.com/books?id=GB_O89fnz_sC&dq=%22lame+delegation%22&pg=PA475|title=Linux Administration Handbook|last2=Snyder|first2=Garth|last3=Hein|first3=Trent R.|date=2006-10-30|publisher=Addison-Wesley Professional|isbn=978-0-13-700275-7|language=en}}</ref><ref>{{Cite book|last1=Bissyande|first1=Tegawendé F.|url=https://books.google.com/books?id=YjE5DwAAQBAJ&dq=%22lame+delegation%22&pg=PA235|title=e-Infrastructure and e-Services for Developing Countries: 8th International Conference, AFRICOMM 2016, Ouagadougou, Burkina Faso, December 6-7, 2016, Proceedings|last2=Sie|first2=Oumarou|date=2017-10-09|publisher=Springer|isbn=978-3-319-66742-3|language=en}}</ref> |
|||
=== Caching time === |
|||
As a noteworthy consequence of this distributed and caching architecture, changes to DNS do not always take effect immediately and globally. This is best explained with an example: If an administrator has set a [[Time to live|TTL]] of 6 hours for the host <tt>www.wikipedia.org</tt>, and then changes the IP address to which <tt>www.wikipedia.org</tt> resolves at 12:01pm, the administrator must consider that a person who cached a response with the old IP address at 12:00noon will not consult the DNS server again until 6:00pm. The period between 12:01pm and 6:00pm in this example is called ''caching time'', which is best defined as a period of time that begins when you make a change to a DNS record and ends after the maximum amount of time specified by the [[Time to live|TTL]] expires. This essentially leads to an important logistical consideration when making changes to DNS: ''not everyone is necessarily seeing the same thing you're seeing''. RFC 1537 helps to convey basic rules for how to set the TTL. |
|||
==Operation== |
|||
Note that the term "propagation", although very widely used in this context, does not describe the effects of caching well. Specifically, it implies that [1] when you make a DNS change, it somehow spreads to all other DNS servers (instead, other DNS servers check in with yours as needed), and [2] that you do not have control over the amount of time the record is cached (you control the TTL values for all DNS records in your domain, except your NS records and any authoritative DNS servers that use your domain name). |
|||
===Address resolution mechanism=== |
|||
Domain name resolvers determine the domain name servers responsible for the domain name in question by a sequence of queries starting with the right-most (top-level) domain label. |
|||
[[File:Example of an iterative DNS resolver.svg|right|thumb|400px|A DNS resolver that implements the iterative approach mandated by RFC 1034; in this case, the resolver consults three name servers to resolve the [[fully qualified domain name]] "www.wikipedia.org".]] |
|||
Some resolvers may override TTL values, as the protocol supports caching for up to 68 years or no caching at all. Negative caching (the non-existence of records) is determined by name servers authoritative for a zone which MUST include the Start of Authority (SOA) record when reporting no data of the requested type exists. The MINIMUM field of the SOA record and the TTL of the SOA itself is used to establish the TTL for the negative answer. RFC 2308 |
|||
For proper operation of its domain name resolver, a network host is configured with an initial cache (''hints'') of the known addresses of the root name servers. The hints are updated periodically by an administrator by retrieving a dataset from a reliable source. |
|||
Many people incorrectly refer to a mysterious 48 hour or 72 hour propagation time when you make a DNS change. When one changes the NS records for one's domain or the IP addresses for hostnames of authoritative DNS servers using one's domain (if any), there can be a lengthy period of time before all DNS servers use the new information. This is because those records are handled by the zone parent DNS servers (for example, the .com DNS servers if your domain is example.com), which typically cache those records for 48 hours. However, those DNS changes will be immediately available for any DNS servers that do not have them cached. And any DNS changes on your domain other than the NS records and authoritative DNS server names can be nearly instantaneous, if you choose for them to be (by lowering the TTL once or twice ahead of time, and waiting until the old TTL expires before making the change). |
|||
Assuming the resolver has no cached records to accelerate the process, the resolution process starts with a query to one of the root servers. In typical operation, the root servers do not answer directly, but respond with a referral to more authoritative servers, e.g., a query for "www.wikipedia.org" is referred to the ''org'' servers. The resolver now queries the servers referred to, and iteratively repeats this process until it receives an authoritative answer. The diagram illustrates this process for the host that is named by the [[fully qualified domain name]] "www.wikipedia.org". |
|||
=== In the real world === |
|||
[[Image:DNS in the real world.svg|right|thumb|400px|DNS resolving from program to OS-resolver to ISP-resolver to greater system.]] |
|||
Users generally do not communicate directly with a DNS resolver. Instead DNS-resolution takes place transparently in client-applications such as [[web browser| web-browser]]s, [[e-mail client| mail-client]]s, and other Internet applications. When an application makes a request which requires a DNS lookup, such programs send a resolution request to the local [[Domain_Name_System#DNS_resolvers|DNS resolver]] in the local operating system, which in turn handles the communications required. |
|||
This mechanism would place a large traffic burden on the root servers, if every resolution on the Internet required starting at the root. In practice [[#Record caching|caching]] is used in DNS servers to off-load the root servers, and as a result, root name servers actually are involved in only a relatively small fraction of all requests. |
|||
The DNS resolver will almost invariably have a cache (see above) containing recent lookups. If the cache can provide the answer to the request, the resolver will return the value in the cache to the program that made the request. If the cache does not contain the answer, the resolver will send the request to one or more designated DNS servers. In the case of most home users, the [[Internet service provider]] to which the machine connects will usually supply this DNS server: such a user will either have configured that server's address manually or allowed [[Dynamic Host Configuration Protocol|DHCP]] to set it; however, where systems administrators have configured systems to use their own DNS servers, their DNS resolvers point to separately maintained nameservers of the organization. In any event, the name server thus queried will follow the process outlined [[#How DNS works in theory|above]], until it either successfully finds a result or does not. It then returns its results to the DNS resolver; assuming it has found a result, the resolver duly caches that result for future use, and hands the result back to the software which initiated the request. |
|||
==== |
====Recursive and caching name server==== |
||
In theory, authoritative name servers are sufficient for the operation of the Internet. However, with only authoritative name servers operating, every DNS query must start with recursive queries at the [[DNS root zone|root zone]] of the Domain Name System and each user system would have to implement resolver software capable of recursive operation.<ref>{{Cite web |title=DNS zone |url=https://www.ionos.co.uk/digitalguide/server/know-how/dns-zone/ |access-date=2022-03-31 |website=IONOS Digitalguide |date=27 January 2022 |language=en}}</ref> |
|||
An additional level of complexity emerges when resolvers violate the rules of the DNS protocol. A number of large ISPs have configured their DNS servers to violate rules (presumably to allow them to run on less-expensive hardware than a fully-compliant resolver), such as by disobeying TTLs, or by indicating that a domain name does not exist just because one of its name servers does not respond.{{Fact|date=February 2008}} |
|||
To improve efficiency, reduce DNS traffic across the Internet, and increase performance in end-user applications, the Domain Name System supports DNS cache servers which store DNS query results for a period of time determined in the configuration (''[[time-to-live]]'') of the domain name record in question. |
|||
As a final level of complexity, some applications (such as web-browsers) also have their own DNS cache, in order to reduce the use of the DNS resolver library itself. This practice can add extra difficulty when debugging DNS issues, as it obscures the freshness of data, and/or what data comes from which cache. These caches typically use very short caching times — on the order of one minute. [[Internet Explorer]] offers a notable exception: [[as of 2007|recent]] versions cache DNS records for half an hour.<ref> |
|||
Typically, such caching DNS servers also implement the recursive algorithm necessary to resolve a given name starting with the DNS root through to the authoritative name servers of the queried domain. With this function implemented in the name server, user applications gain efficiency in design and operation. |
|||
{{cite web| url=http://support.microsoft.com/default.aspx?scid=KB;en-us;263558| title=How Internet Explorer uses the cache for DNS host entries| id=263558| publisher=Microsoft| year=2004| accessdate=2006-03-07}} |
|||
</ref> |
|||
The combination of DNS caching and recursive functions in a name server is not mandatory; the functions can be implemented independently in servers for special purposes. |
|||
=== Other applications === |
|||
The system outlined above provides a somewhat simplified scenario. The Domain Name System includes several other functions: |
|||
* Hostnames and IP addresses do not necessarily match on a one-to-one basis. Many hostnames may correspond to a single IP address: combined with [[virtual hosting]], this allows a single machine to serve many web sites. Alternatively a single hostname may correspond to many IP addresses: this can facilitate [[fault-tolerance|fault tolerance]] and load distribution, and also allows a site to move physical location seamlessly. |
|||
* There are many uses of DNS besides translating names to IP addresses. For instance, [[Mail transfer agent]]s use DNS to find out where to deliver [[e-mail]] for a particular address. The domain to mail exchanger mapping provided by [[MX record]]s accommodates another layer of fault tolerance and load distribution on top of the name to IP address mapping. |
|||
* [[Sender Policy Framework]] and [[DomainKeys]] instead of creating their own record types were designed to take advantage of another DNS record type, the TXT record. |
|||
* To provide resilience in the event of computer failure, multiple DNS servers are usually provided for coverage of each domain, and at the top level, thirteen very powerful [[Root nameserver|root server]]s exist, with additional "copies" of several of them distributed worldwide via [[Anycast]]. |
|||
[[Internet service providers]] typically provide recursive and caching name servers for their customers. In addition, many home networking routers implement DNS caches and recursion to improve efficiency in the local network. |
|||
=== Protocol details === |
|||
DNS primarily uses [[User Datagram Protocol|UDP]] on [[TCP and UDP port|port]] 53 <ref>{{cite web|title=RFC1035: Domain Names - Implementation and Specification|url=http://www.ietf.org/rfc/rfc1035.txt|last=Mockapetris|first=P|accessdate=2007-07-31|date=November, 1987}}</ref> to serve requests. Almost all DNS queries consist of a single UDP request from the client followed by a single UDP reply from the server. [[Transmission Control Protocol|TCP]] comes into play only when the response data size exceeds 512 bytes, or for such tasks as [[DNS zone transfer|zone transfer]]. Some operating systems such as [[HP-UX]] are known to have resolver implementations that use TCP for all queries, even when UDP would suffice. |
|||
=== |
===DNS resolvers=== |
||
The [[Client-side|client side]] of the DNS is called a DNS resolver. A resolver is responsible for initiating and sequencing the queries that ultimately lead to a full resolution (translation) of the resource sought, e.g., translation of a domain name into an IP address. DNS resolvers are classified by a variety of query methods, such as ''recursive'', ''non-recursive'', and ''iterative''. A resolution process may use a combination of these methods.<ref name="rfc1034" /> |
|||
[[EDNS]] is an extension of the DNS protocol which allows the transport over UDP of DNS replies exceeding 512 bytes, and adds support for expanding the space of request and response codes. It is described in RFC 2671. |
|||
In a ''non-recursive query'', a DNS resolver queries a DNS server that provides a record either for which the server is authoritative, or it provides a partial result without querying other servers. In case of a [[#Record_caching|caching DNS resolver]], the non-recursive query of its local [[Name server#Caching name server|DNS cache]] delivers a result and reduces the load on upstream DNS servers by caching DNS resource records for a period of time after an initial response from upstream DNS servers. |
|||
==Types of DNS records== |
|||
{{main|List of DNS record types}} |
|||
In a ''recursive query'', a DNS resolver queries a single DNS server, which may in turn query other DNS servers on behalf of the requester. For example, a simple stub resolver running on a [[home router]] typically makes a recursive query to the DNS server run by the user's [[ISP]]. A recursive query is one for which the DNS server answers the query completely by querying other name servers as needed. In typical operation, a client issues a recursive query to a caching recursive DNS server, which subsequently issues non-recursive queries to determine the answer and send a single answer back to the client. The resolver, or another DNS server acting recursively on behalf of the resolver, negotiates use of recursive service using bits in the query headers. DNS servers are not required to support recursive queries. |
|||
When sent over the Internet, all records use the common format specified in RFC 1035 shown below. |
|||
The ''iterative query'' procedure is a process in which a DNS resolver queries a chain of one or more DNS servers. Each server refers the client to the next server in the chain, until the current server can fully resolve the request. For example, a possible resolution of www.example.com would query a global root server, then a "com" server, and finally an "example.com" server. |
|||
===Circular dependencies and glue records=== |
|||
Name servers in delegations are identified by name, rather than by IP address. This means that a resolving name server must issue another DNS request to find out the IP address of the server to which it has been referred. If the name given in the delegation is a subdomain of the domain for which the delegation is being provided, there is a [[circular dependency]]. |
|||
In this case, the name server providing the delegation must also provide one or more IP addresses for the [[authoritative name server]] mentioned in the delegation. This information is called ''glue''. The delegating name server provides this glue in the form of records in the ''additional section'' of the DNS response, and provides the delegation in the ''authority section'' of the response. A glue record is a combination of the name server and IP address. |
|||
For example, if the [[authoritative name server]] for example.org is ns1.example.org, a computer trying to resolve www.example.org first resolves ns1.example.org. As ns1 is contained in example.org, this requires resolving example.org first, which presents a circular dependency. To break the dependency, the name server for the [[top level domain]] org includes glue along with the delegation for example.org. The glue records are address records that provide IP addresses for ns1.example.org. The resolver uses one or more of these IP addresses to query one of the domain's authoritative servers, which allows it to complete the DNS query. |
|||
===Record caching=== |
|||
A common approach to reduce the burden on DNS servers is to cache the results of name resolution locally or on intermediary resolver hosts. Each DNS query result comes with a time to live (TTL), which indicates how long the information remains valid before it needs to be discarded or refreshed. This TTL is determined by the administrator of the authoritative DNS server and can range from a few seconds to several days or even weeks.<ref>{{Cite web |title=What is DNS propagation? |url=https://www.ionos.com/digitalguide/server/know-how/dns-propagation/ |access-date=2022-04-22 |website=IONOS Digitalguide |language=en}}</ref> |
|||
As a result of this distributed caching architecture, changes to DNS records do not propagate throughout the network immediately, but require all caches to expire and to be refreshed after the TTL. RFC 1912 conveys basic rules for determining appropriate TTL values. |
|||
Some resolvers may override TTL values, as the protocol supports caching for up to sixty-eight years or no caching at all. [[Negative cache|Negative caching]], i.e. the caching of the fact of non-existence of a record, is determined by name servers authoritative for a zone which must include the [[SOA record|Start of Authority]] (SOA) record when reporting no data of the requested type exists. The value of the ''minimum'' field of the SOA record and the TTL of the SOA itself is used to establish the TTL for the negative answer. |
|||
===Reverse lookup=== |
|||
A [[reverse DNS lookup]] is a query of the DNS for domain names when the IP address is known. Multiple domain names may be associated with an IP address. The DNS stores IP addresses in the form of domain names as specially formatted names in pointer (PTR) records within the infrastructure top-level domain [[.arpa|arpa]]. For IPv4, the domain is in-addr.arpa. For IPv6, the reverse lookup domain is ip6.arpa. The IP address is represented as a name in reverse-ordered octet representation for IPv4, and reverse-ordered nibble representation for IPv6. |
|||
When performing a reverse lookup, the DNS client converts the address into these formats before querying the name for a PTR record following the delegation chain as for any DNS query. For example, assuming the IPv4 address 208.80.152.2 is assigned to Wikimedia, it is represented as a DNS name in reverse order: 2.152.80.208.in-addr.arpa. When the DNS resolver gets a pointer (PTR) request, it begins by querying the root servers, which point to the servers of [[American Registry for Internet Numbers]] (ARIN) for the 208.in-addr.arpa zone. ARIN's servers delegate 152.80.208.in-addr.arpa to Wikimedia to which the resolver sends another query for 2.152.80.208.in-addr.arpa, which results in an authoritative response. |
|||
===Client lookup=== |
|||
[[File:DNS Architecture.svg|right|thumb|400px|DNS resolution sequence]] |
|||
Users generally do not communicate directly with a DNS resolver. Instead DNS resolution takes place transparently in applications such as [[web browser]]s, [[e-mail client]]s, and other Internet applications. When an application makes a request that requires a domain name lookup, such programs send a resolution request to the [[DNS resolver]] in the local operating system, which in turn handles the communications required. |
|||
The DNS resolver will almost invariably have a cache (see above) containing recent lookups. If the cache can provide the answer to the request, the resolver will return the value in the cache to the program that made the request. If the cache does not contain the answer, the resolver will send the request to one or more designated DNS servers. In the case of most home users, the Internet service provider to which the machine connects will usually supply this DNS server: such a user will either have configured that server's address manually or allowed [[Dynamic Host Configuration Protocol|DHCP]] to set it; however, where systems administrators have configured systems to use their own DNS servers, their DNS resolvers point to separately maintained name servers of the organization. In any event, the name server thus queried will follow the process outlined [[#Address resolution mechanism|above]], until it either successfully finds a result or does not. It then returns its results to the DNS resolver; assuming it has found a result, the resolver duly caches that result for future use, and hands the result back to the software which initiated the request. |
|||
====Broken resolvers==== |
|||
Some large ISPs have configured their DNS servers to violate rules, such as by disobeying TTLs, or by indicating that a domain name does not exist just because one of its name servers does not respond.<ref>{{cite web |
|||
|url = http://ask.slashdot.org/story/05/04/18/198259/providers-ignoring-dns-ttl |
|||
|title = Providers ignoring DNS TTL? |
|||
|publisher = [[Slashdot]] |
|||
|year = 2005 |
|||
|access-date = 2012-04-07 |
|||
}}</ref> |
|||
Some applications such as web browsers maintain an internal DNS cache to avoid repeated lookups via the network. This practice can add extra difficulty when debugging DNS issues as it obscures the history of such data. These caches typically use very short caching times on the order of one minute.<ref>{{cite web|url=http://dyn.com/web-browser-dns-caching-bad-thing/|title=Ben Anderson: Why Web Browser DNS Caching Can Be A Bad Thing|author=Ben Anderson|date=7 September 2011|access-date=20 October 2014}}</ref> |
|||
[[Internet Explorer]] represents a notable exception: versions up to IE 3.x cache DNS records for 24 hours by default. Internet Explorer 4.x and later versions (up to IE 8) decrease the default timeout value to half an hour, which may be changed by modifying the default configuration.<ref>{{cite web |
|||
|url = http://support.microsoft.com/default.aspx?scid=KB;en-us;263558 |
|||
|title = How Internet Explorer uses the cache for DNS host entries |
|||
|publisher = [[Microsoft Corporation]] |
|||
|year = 2004 |
|||
|access-date = 2010-07-25 |
|||
}}</ref> |
|||
When [[Google Chrome]] detects issues with the DNS server it displays a specific error message. |
|||
===Other applications=== |
|||
The Domain Name System includes several other functions and features. |
|||
Hostnames and IP addresses are not required to match in a one-to-one relationship. Multiple hostnames may correspond to a single IP address, which is useful in [[virtual hosting]], in which many web sites are served from a single host. Alternatively, a single hostname may resolve to many IP addresses to facilitate [[fault tolerance]] and [[load balancing (computing)|load distribution]] to multiple server instances across an enterprise or the global Internet. |
|||
DNS serves other purposes in addition to translating names to IP addresses. For instance, [[mail transfer agent]]s use DNS to find the best mail server to deliver [[e-mail]]: An [[MX record]] provides a mapping between a domain and a mail exchanger; this can provide an additional layer of fault tolerance and load distribution. |
|||
The DNS is used for efficient storage and distribution of IP addresses of blacklisted email hosts. A common method is to place the IP address of the subject host into the sub-domain of a higher level domain name, and to resolve that name to a record that indicates a positive or a negative indication. |
|||
For example: |
|||
* The address {{IPaddr|203.0.113.5}} is blacklisted. It points to {{mono|5.113.0.203.blacklist.example}}, which resolves to {{IPaddr|127.0.0.1}}. |
|||
* The address {{IPaddr|203.0.113.6}} is not blacklisted and points to {{mono|6.113.0.203.blacklist.example}}. This hostname is either not configured, or resolves to {{IPaddr|127.0.0.2}}. |
|||
E-mail servers can query blacklist.example to find out if a specific host connecting to them is in the blacklist. Many of such blacklists, either subscription-based or free of cost, are available for use by email administrators and anti-spam software. |
|||
To provide resilience in the event of computer or network failure, multiple DNS servers are usually provided for coverage of each domain. At the top level of global DNS, thirteen groups of [[root name server]]s exist, with additional "copies" of them distributed worldwide via [[anycast]] addressing. |
|||
[[Dynamic DNS]] (DDNS) updates a DNS server with a client IP address on-the-fly, for example, when moving between ISPs or mobile [[Hotspot (Wi-Fi)|hot spots]], or when the IP address changes administratively. |
|||
==DNS message format== |
|||
The DNS protocol uses two types of DNS messages, queries and responses; both have the same format. Each message consists of a header and four sections: question, answer, authority, and an additional space. A header field (''flags'') controls the content of these four sections.<ref name=rfc1034/> |
|||
The header section consists of the following fields: ''Identification'', ''Flags'', ''Number of questions'', ''Number of answers'', ''Number of authority resource records'' (RRs), and ''Number of additional RRs''. Each field is 16 bits long, and appears in the order given. The identification field is used to match responses with queries. The flag field consists of sub-fields as follows: |
|||
{| class="wikitable" style="margin: 1em auto 1em auto" |
|||
|+Header flags format |
|||
|- |
|||
! Field !! Description !! Length ([[bit]]s) |
|||
|- |
|||
| QR || Indicates if the message is a query (0) or a reply (1) || 1 |
|||
|- |
|||
| OPCODE || The type can be QUERY (standard query, 0), IQUERY (inverse query, 1), or STATUS (server status request, 2) || 4 |
|||
|- |
|||
| AA || Authoritative Answer, in a response, indicates if the DNS server is authoritative for the queried hostname || 1 |
|||
|- |
|||
| TC || TrunCation, indicates that this message was truncated due to excessive length || 1 |
|||
|- |
|||
| RD || Recursion Desired, indicates if the client means a recursive query || 1 |
|||
|- |
|||
| RA || Recursion Available, in a response, indicates if the replying DNS server supports recursion || 1 |
|||
|- |
|||
| Z || Zero, reserved for future use || 3 |
|||
|- |
|||
| RCODE || Response code, can be NOERROR (0), FORMERR (1, Format error), SERVFAIL (2), NXDOMAIN (3, Nonexistent domain), etc.<ref>{{cite web |url=https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-6 |title=Domain Name System (DNS) Parameters |at=DNS RCODEs |author=<!--Not stated--> |publisher=[[IANA]] |access-date=14 June 2019}}</ref> || 4 |
|||
|} |
|||
After the flags word, the header ends with four 16-bit integers which contain the number of records in each of the sections that follow, in the same order. |
|||
{| class="wikitable" style="margin: 0 auto; text-align:center" |
|||
|+DNS Header |
|||
|- |
|||
! colspan="2" | ''Offsets'' |
|||
! colspan="8" style="border-left:1px; text-align:left;" | 0 |
|||
! colspan="8" style="border-left:1px; text-align:left;" | 1 |
|||
! colspan="8" style="border-left:1px; text-align:left;" | 2 |
|||
! colspan="8" style="border-left:1px; text-align:left;" | 3 |
|||
|- |
|||
! [[Octet (computing)|Octet]] !! [[Bit]] |
|||
! style="text-align:left;" | 0 !! 1 !! 2 !! 3 !!4 !! 5 !! 6 !! 7 !! 0 !! 1 |
|||
! style="text-align:left;" | 2 !! 3 !! 4 !! 5 !!6 !! 7 !! 0 !! 1 !! 2 !! 3 |
|||
! style="text-align:left;" | 4 !! 5 !! 6 !! 7 !!0 !! 1 !! 2 !! 3 !! 4 !! 5 |
|||
! style="text-align:left;" | 6 !! 7 |
|||
|- |
|||
! rowspan="2" | 0 |
|||
! rowspan="2" | 0 |
|||
| rowspan="2" colspan="16"| Transaction ID || colspan="16"| Flags |
|||
|- |
|||
| {{Vertical text|QR}} |
|||
| colspan="4" | OPCODE |
|||
| {{Vertical text|AA}} |
|||
| {{Vertical text|TC}} |
|||
| {{Vertical text|RD}} |
|||
| {{Vertical text|RA}} |
|||
| colspan="3" | Z |
|||
| colspan="4" | RCODE |
|||
|- |
|||
! 4 |
|||
!32 |
|||
| colspan="16"| Number of questions |
|||
| colspan="16"| Number of answers |
|||
|- |
|||
! 8 |
|||
!64 |
|||
| colspan="16"| Number of authority RRs |
|||
| colspan="16"| Number of additional RRs |
|||
|- |
|||
|} |
|||
===Question section=== |
|||
The question section has a simpler format than the resource record format used in the other sections. Each question record (there is usually just one in the section) contains the following fields: |
|||
{| class="wikitable" style="margin: 1em auto 1em auto" |
{| class="wikitable" style="margin: 1em auto 1em auto" |
||
|+ |
|+ Resource record (RR) fields |
||
|- |
|- |
||
!Field !! Description !! Length ([[Octet (computing)| |
! Field !! Description !! Length ([[Octet (computing)|octets]]) |
||
|- |
|- |
||
|NAME || Name of the |
| NAME || Name of the requested resource || Variable |
||
|- |
|- |
||
|TYPE || Type of RR |
| TYPE || Type of RR (A, AAAA, MX, TXT, etc.) || 2 |
||
|- |
|- |
||
|CLASS || Class code |
| CLASS || Class code || 2 |
||
|} |
|||
The domain name is broken into discrete labels which are concatenated; each label is prefixed by the length of that label.<ref>James F. Kurose and Keith W. Ross, Computer Networking: A Top-Down Approach, 6th ed. Essex, England: Pearson Educ. Limited, 2012</ref> |
|||
==Resource records== |
|||
{{anchor|resource records|resource record}} |
|||
The Domain Name System specifies a database of information elements for network resources. The types of information elements are categorized and organized with a [[list of DNS record types]], the resource records (RRs). Each record has a type (name and number), an expiration time ([[Time to live#DNS records|time to live]]), a class, and type-specific data. Resource records of the same type are described as a ''resource record set'' (RRset), having no special ordering. DNS resolvers return the entire set upon query, but servers may implement [[round-robin DNS|round-robin ordering]] to achieve [[load balancing (computing)|load balancing]]. In contrast, the [[Domain Name System Security Extensions]] (DNSSEC) work on the complete set of resource record in canonical order. |
|||
When sent over an [[Internet Protocol]] network, all records (answer, authority, and additional sections) use the common format specified in RFC 1035:<ref>RFC 5395, ''Domain Name System (DNS) IANA Considerations'', D. Eastlake 3rd (November 2008), Section 3</ref> |
|||
{| class="wikitable" style="margin: 1em auto 1em auto" |
|||
|+ Resource record (RR) fields |
|||
|- |
|||
! Field !! Description !! Length ([[Octet (computing)|octets]]) |
|||
|- |
|||
| NAME || Name of the node to which this record pertains || Variable |
|||
|- |
|||
| TYPE || Type of RR in numeric form (e.g., 15 for MX RRs) || 2 |
|||
|- |
|||
| CLASS || Class code || 2 |
|||
|- |
|- |
||
|[[Time to live|TTL]] || |
| [[Time to live|TTL]] || Count of seconds that the RR stays valid (The maximum is 2<sup>31</sup>−1, which is about 68 years) || 4 |
||
|- |
|- |
||
|RDLENGTH || Length of RDATA field |
| RDLENGTH || Length of RDATA field (specified in octets) || 2 |
||
|- |
|- |
||
|RDATA || Additional RR-specific data |
| RDATA || Additional RR-specific data || Variable, as per RDLENGTH |
||
|} |
|} |
||
''NAME'' is the fully qualified domain name of the node in the tree.{{clarify|date=November 2017}} On the wire, the name may be shortened using label compression where ends of domain names mentioned earlier in the packet can be substituted for the end of the current domain name. |
|||
The type of the record indicates what the format of the data is, and gives a hint of its intended use; for instance, the '''A''' record is used to translate from a domain name to an [[IPv4 address]], the '''NS''' record lists which [[name server]]s can answer lookups on a [[DNS zone]], and the '''MX''' record is used to translate from a name in the right-hand side of an [[e-mail address]] to the name of a machine able to handle mail for that address. |
|||
''TYPE'' is the record type. It indicates the format of the data and it gives a hint of its intended use. For example, the ''A'' record is used to translate from a domain name to an [[IPv4 address]], the ''NS'' record lists which name servers can answer lookups on a [[DNS zone]], and the ''MX'' record specifies the mail server used to handle mail for a domain specified in an e-mail address. |
|||
Many more record types exist and be found in the complete [[List of DNS record types]]. |
|||
''RDATA'' is data of type-specific relevance, such as the IP address for address records, or the priority and hostname for MX records. Well known record types may use label compression in the RDATA field, but "unknown" record types must not (RFC 3597). |
|||
==Internationalized domain names== |
|||
{{main|Internationalized domain name}} |
|||
While domain names technically have no restrictions on the characters they use and can include non-[[ASCII]] characters, the same is not true for host names.<ref>The term ''host name'' is here being used to mean an [[FQDN]] for a host, such as eg. <tt>en.wikipedia.org.</tt>, and not just (to use the same example) <tt>en</tt> .<br />While most domain names do indeed designate hosts, some domain name DNS entries may not. In this sense, a ([[FQDN]]) hostname is a type of domain name, but not all domain names are actual host names. Cf. [http://www.ops.ietf.org/lists/namedroppers/namedroppers.2005/msg00889.html this host name vs domain name explanation] from the DNS OP [[IETF Working Group]].</ref> Host names are the names most people see and use for things like e-mail and web browsing. [[Hostname|Host names]] are restricted to a small subset of the ASCII character set known as '''LDH''', the '''L'''etters A–Z in upper and lower case, '''D'''igits 0–9, '''H'''[[hyphen|yphen]], and the dot to separate LDH-labels; see RFC 3696 section 2 for details. This prevented the representation of names and words of many languages natively. [[ICANN]] has approved the [[Punycode]]-based [[Internationalized domain name|IDNA]] system, which maps [[Unicode]] strings into the valid DNS character set, as a workaround to this issue. Some [[domain name registry|registries]] have adopted IDNA. |
|||
The ''CLASS'' of a record is set to IN (for ''Internet'') for common DNS records involving Internet hostnames, servers, or IP addresses. In addition, the classes [[Chaosnet|Chaos]] (CH) and [[Hesiod (name service)|Hesiod]] (HS) exist.<ref>RFC 5395, ''Domain Name System (DNS) IANA Considerations'', D. Eastlake 3rd (November 2008), p. 11</ref> Each class is an independent name space with potentially different delegations of DNS zones. |
|||
== Security issues == |
|||
DNS was not originally designed with security in mind, and thus has a number of security issues. |
|||
In addition to resource records defined in a [[zone file]], the domain name system also defines several request types that are used only in communication with other DNS nodes (''on the wire''), such as when performing zone transfers (AXFR/IXFR) or for [[Extension Mechanisms for DNS|EDNS]] (OPT). |
|||
One class of vulnerabilities is [[DNS cache poisoning]], which tricks a DNS server into believing it has received authentic information when, in reality, it has not. |
|||
===Wildcard records=== |
|||
DNS responses are traditionally not cryptographically signed, leading to many attack possibilities; [[DNSSEC]] modifies DNS to add support for cryptographically signed responses. There are various extensions to support securing zone transfer information as well. |
|||
The domain name system supports [[wildcard DNS record]]s which specify names that start with the ''asterisk label'', <code>*</code>, e.g., <code>*.example</code>.<ref name=rfc1034/><ref name=rfc4592>{{IETF RFC|4592}}, ''The Role of Wildcards in the Domain Name System'', E. Lewis (July 2006)</ref> DNS records belonging to wildcard domain names specify rules for generating resource records within a single DNS zone by substituting whole labels with matching components of the query name, including any specified descendants. For example, in the following configuration, the DNS zone ''x.example'' specifies that all subdomains, including subdomains of subdomains, of ''x.example'' use the mail exchanger (MX) ''a.x.example''. The A record for ''a.x.example'' is needed to specify the mail exchanger IP address. As this has the result of excluding this domain name and its subdomains from the wildcard matches, an additional MX record for the subdomain ''a.x.example'', as well as a wildcarded MX record for all of its subdomains, must also be defined in the DNS zone. |
|||
<syntaxhighlight lang="zone"> |
|||
Even with encryption, a DNS server could become compromised by a virus (or for that matter a disgruntled employee) that would cause IP addresses of that server to be redirected to a malicious address with a long TTL. This could have far-reaching impact to potentially millions of Internet users if busy DNS servers cache the bad IP data. This would require manual purging of all affected DNS caches as required by the long TTL (up to 68 years). |
|||
x.example. MX 10 a.x.example. |
|||
*.x.example. MX 10 a.x.example. |
|||
*.a.x.example. MX 10 a.x.example. |
|||
a.x.example. MX 10 a.x.example. |
|||
a.x.example. AAAA 2001:db8::1 |
|||
</syntaxhighlight> |
|||
The role of wildcard records was refined in {{IETF RFC|4592}}, because the original definition in {{IETF RFC|1034}} was incomplete and resulted in misinterpretations by implementers.<ref name="rfc4592" /> |
|||
Some domain names can spoof other, similar-looking domain names. For example, "paypal.com" and "paypa1.com" are different names, yet users may be unable to tell the difference when the user's [[typeface]] (font) does not clearly differentiate the letter [[l]] and the number [[1 (number)|1]]. |
|||
This problem is much more serious in systems that support [[internationalized domain name]]s, |
|||
since many characters that are different, from the point of view of [[ISO 10646]], |
|||
appear identical on typical computer screens. This vulnerability is often exploited in [[phishing]]. |
|||
==Protocol extensions== |
|||
Techniques such as [[Forward Confirmed reverse DNS]] can also be used to help validate DNS results. |
|||
The original DNS protocol had limited provisions for extension with new features. In 1999, Paul Vixie published in RFC 2671 (superseded by RFC 6891) an extension mechanism, called [[Extension Mechanisms for DNS]] (EDNS) that introduced optional protocol elements without increasing overhead when not in use. This was accomplished through the OPT pseudo-resource record that only exists in wire transmissions of the protocol, but not in any zone files. Initial extensions were also suggested (EDNS0), such as increasing the DNS message size in UDP datagrams. |
|||
==Dynamic zone updates== |
|||
== Domain Registration == |
|||
[[Dynamic DNS|Dynamic DNS updates]] use the UPDATE DNS opcode to add or remove resource records dynamically from a zone database maintained on an authoritative DNS server.{{Ref RFC|2136}} This facility is useful to register network clients into the DNS when they boot or become otherwise available on the network. As a booting client may be assigned a different IP address each time from a [[DHCP]] server, it is not possible to provide static DNS assignments for such clients. |
|||
The right to use a domain name is delegated by [[domain name registrar]]s which are accredited by the [[Internet Corporation for Assigned Names and Numbers]] (ICANN), the organization charged with overseeing the name and number systems of the Internet. In addition to ICANN, each top-level domain (TLD) is maintained and serviced technically by a sponsoring organization, the TLD Registry. The registry is responsible for maintaining the database of names registered within the TLDs they administer. The registry receives registration information from each domain name registrar authorized to assign names in the corresponding TLD and publishes the information using a special service, the [[whois]] protocol. |
|||
==Transport protocols== |
|||
Registrars usually charge an annual fee for the service of delegating a domain name to a user and providing a default set of name servers. Often this transaction is termed a sale or lease of the domain name, and the registrant is called an "owner", but no such legal relationship is actually associated with the transaction, only the exclusive right to use the domain name. More correctly authorized users are known as "registrants" or as "domain holders". |
|||
From the time of its origin in 1983 the DNS has used the [[User Datagram Protocol]] (UDP) for transport over IP. Its limitations have motivated numerous protocol developments for reliability, security, privacy, and other criteria, in the following decades. |
|||
===DNS over UDP/TCP/53 (Do53)=== |
|||
[[ICANN]] publishes a complete list of TLD registries and domain name registrars in the world. One can obtain information about the registrant of a domain name by looking in the [[WHOIS]] database held by many domain registries. |
|||
UDP reserves [[port number]] 53 for servers listening to queries.<ref name=rfc1035/> Such queries consist of a clear-text request sent in a single UDP packet from the client, responded to with a clear-text reply sent in a single UDP packet from the server. When the length of the answer exceeds 512 bytes and both client and server support [[Extension Mechanisms for DNS]] (EDNS), larger UDP packets may be used.<ref>{{IETF RFC|2671}}, ''Extension Mechanisms for DNS (EDNS0)'', P. Vixie (August 1999)</ref> Use of DNS over UDP is limited by, among other things, its lack of transport-layer encryption, authentication, reliable delivery, and message length. In 1989, RFC 1123 specified optional [[Transmission Control Protocol]] (TCP) transport for DNS queries, replies and, particularly, [[DNS zone transfer|zone transfers]]. Via fragmentation of long replies, TCP allows longer responses, reliable delivery, and re-use of long-lived connections between clients and servers. For larger responses, the server refers the client to TCP transport. |
|||
===DNS over TLS (DoT)=== |
|||
For most of the more than 240 [[country code top-level domain]]s (ccTLDs), the domain registries hold the authoritative WHOIS (Registrant, name servers, expiration dates, etc.). For instance, [[DENIC]], Germany NIC, holds the authoritative WHOIS to a .DE domain name. Since about 2001, most [[gTLD]] registries (.ORG, .BIZ, .INFO) have adopted this so-called "thick" registry approach, i.e. keeping the authoritative [[WHOIS]] in the central registries instead of the registrars. |
|||
[[DNS over TLS]] emerged as an IETF standard for encrypted DNS in 2016, utilizing Transport Layer Security (TLS) to protect the entire connection, rather than just the DNS payload. DoT servers listen on TCP port 853. {{IETF RFC|7858}} specifies that opportunistic encryption and authenticated encryption may be supported, but did not make either server or client authentication mandatory. |
|||
===DNS over HTTPS (DoH)=== |
|||
For .COM and .NET domain names, a "thin" registry is used: the domain registry (e.g. VeriSign) holds a basic WHOIS (registrar and name servers, etc.). One can find the detailed [[WHOIS]] (registrant, [[name server]]s, expiry dates, etc.) at the registrars. |
|||
[[DNS over HTTPS]] was developed as a competing standard for DNS query transport in 2018, tunneling DNS query data over HTTPS, which transports HTTP over TLS. DoH was promoted as a more web-friendly alternative to DNS since, like DNSCrypt, it uses TCP port 443, and thus looks similar to web traffic, though they are easily differentiable in practice without proper padding.<ref>{{cite web |last1=Csikor |first1=Levente |last2=Divakaran |first2=Dinil Mon |title=Privacy of DNS over HTTPS: Requiem for a Dream? |url=https://raw.githubusercontent.com/cslev/doh_ml/main/DNS_over_HTTPS_identification.pdf |publisher=National University of Singapore |date=February 2021 |quote=We investigate whether DoH traffic is distinguishable from encrypted Web traffic. To this end, we train a machine learning model to classify HTTPS traffic as either Web or DoH. With our DoH identification model in place, we show that an authoritarian ISP can identify ≈97.4% of the DoH packets correctly while only misclassifying 1 in 10,000 Web packets.}}</ref> |
|||
===DNS over QUIC (DoQ)=== |
|||
Some domain name registries, also called Network Information Centres (NIC), also function as registrars, and deal directly with end users. But most of the main ones, such as for .COM, .NET, .ORG, .INFO, etc., use a registry-registrar model. There are hundreds of Domain Name Registrars that actually perform the domain name registration with the end user (see lists at [http://www.icann.org/registrars/accredited-list.html ICANN] or [http://www.verisign.com/information-services/naming-services/com-net-registry/page_002166.html VeriSign]). By using this method of distribution, the registry only has to manage the relationship with the registrar, and the registrar maintains the relationship with the end users, or 'registrants' -- in some cases through additional layers of resellers. |
|||
RFC 9250, published in 2022 by the [[Internet Engineering Task Force]], describes DNS over [[QUIC]]. It has "privacy properties similar to DNS over TLS (DoT) [...], and latency characteristics similar to classic DNS over UDP". This method is not the same as DNS over [[HTTP/3]].<ref>{{cite IETF|last1=Huitema |first1=Christian |last2=Dickinson |first2=Sara |last3=Mankin |first3=Allison |title=DNS over Dedicated QUIC Connections |rfc=9250 |publisher=Internet Engineering Task Force |date=May 2022}}</ref> |
|||
===Oblivious DoH (ODoH) and predecessor Oblivious DNS (ODNS)=== |
|||
===Administrative contact=== |
|||
Oblivious DNS (ODNS) was invented and implemented by researchers at [[Princeton University]] and the [[University of Chicago]] as an extension to unencrypted DNS,<ref>{{Cite journal|last1=Schmitt|first1=Paul|last2=Edmundson|first2=Anne|last3=Feamster|first3=Nick|title=Oblivious DNS: Practical Privacy for DNS Queries|url=https://petsymposium.org/2019/files/papers/issue2/popets-2019-0028.pdf |archive-url=https://web.archive.org/web/20220121210624/https://petsymposium.org/2019/files/papers/issue2/popets-2019-0028.pdf |archive-date=2022-01-21 |url-status=live|journal=Privacy Enhancing Technologies |date=2019|volume=2019 |issue=2 |pages=228–244 |doi=10.2478/popets-2019-0028 |arxiv=1806.00276 |s2cid=44126163 }}</ref> before DoH was standardized and widely deployed. Apple and Cloudflare subsequently deployed the technology in the context of DoH, as Oblivious DoH (ODoH).<ref>{{cite web |title=Oblivious DNS Deployed by Cloudflare and Apple |date=9 December 2020 |url=https://medium.com/noise-lab/oblivious-dns-deployed-by-cloudflare-and-apple-1522ccf53cab |access-date=27 July 2022}}</ref> ODoH combines ingress/egress separation (invented in ODNS) with DoH's HTTPS tunneling and TLS transport-layer encryption in a single protocol.<ref>{{cite web |last1=Pauly |first1=Tommy |title=Oblivious DNS Over HTTPS |url=https://datatracker.ietf.org/doc/draft-pauly-dprive-oblivious-doh/|publisher=IETF |date=2 September 2021}}</ref> |
|||
A registrant usually designates an administrative contact to manage the domain name. In practice, the administrative contact usually has the most immediate power over a domain. Management functions delegated to the administrative contacts may include (for example): |
|||
* the obligation to conform to the requirements of the domain registry in order to retain the right to use a domain name |
|||
* authorization to update the physical address, e-mail address and telephone number etc. in [[WHOIS]] |
|||
=== |
===DNS over Tor=== |
||
DNS may be run over [[virtual private network]]s (VPNs) and [[tunneling protocol]]s. A use which has become common since 2019 to warrant its own frequently used acronym is DNS over [[Tor (network)|Tor]]. The privacy gains of Oblivious DNS can be garnered through the use of the preexisting Tor network of ingress and egress nodes, paired with the transport-layer encryption provided by TLS.<ref>{{cite web |last1=Muffett |first1=Alec |title="No Port 53, Who Dis?" A Year of DNS over HTTPS over Tor |url=https://www.ndss-symposium.org/wp-content/uploads/dnspriv21-03-paper.pdf |archive-url=https://web.archive.org/web/20210321110839/https://www.ndss-symposium.org/wp-content/uploads/dnspriv21-03-paper.pdf |archive-date=2021-03-21 |url-status=live |publisher=Network and Distributed System Security Symposium |date=February 2021 |quote=DNS over HTTPS (DoH) obviates many but not all of the risks, and its transport protocol (i.e. HTTPS) raises concerns of privacy due to (e.g.) 'cookies.' The Tor Network exists to provide TCP circuits with some freedom from tracking, surveillance, and blocking. Thus: In combination with Tor, DoH, and the principle of "Don't Do That, Then" (DDTT) to mitigate request fingerprinting, I describe DNS over HTTPS over Tor (DoHoT).}}</ref> |
|||
A technical contact manages the name servers of a domain name. The many functions of a technical contact include: |
|||
* making sure the configurations of the domain name conforms to the requirements of the domain registry |
|||
* updating the domain zone |
|||
* providing the 24×7 functionality of the name servers (that leads to the accessibility of the domain name) |
|||
=== |
===DNSCrypt=== |
||
The [[DNSCrypt]] protocol, which was developed in 2011 outside the [[Internet Engineering Task Force|IETF]] standards framework, introduced DNS encryption on the downstream side of recursive resolvers, wherein clients encrypt query payloads using servers' public keys, which are published in the DNS (rather than relying upon third-party certificate authorities) and which may in turn be protected by DNSSEC signatures.<ref>{{Cite web |last=Ulevitch |first=David |date=6 December 2011 |title=DNSCrypt – Critical, fundamental, and about time. |url=https://umbrella.cisco.com/blog/dnscrypt-critical-fundamental-and-about-time |url-status=live |archive-url=https://web.archive.org/web/20200701221715/https://umbrella.cisco.com/blog/dnscrypt-critical-fundamental-and-about-time |archive-date=1 July 2020 |website=Cisco Umbrella |language=en-US}}</ref> DNSCrypt uses either TCP or UDP port 443, the same port as HTTPS encrypted web traffic. This introduced not only privacy regarding the content of the query, but also a significant measure of firewall-traversal capability. In 2019, DNSCrypt was further extended to support an "anonymized" mode, similar to the proposed "Oblivious DNS", in which an ingress node receives a query which has been encrypted with the public key of a different server, and relays it to that server, which acts as an egress node, performing the recursive resolution.<ref name="Anonymized DNSCrypt specification">{{Cite web |title=Anonymized DNSCrypt specification |url=https://raw.githubusercontent.com/DNSCrypt/dnscrypt-protocol/master/ANONYMIZED-DNSCRYPT.txt |url-status=live |archive-url=https://web.archive.org/web/20191025094649/https://raw.githubusercontent.com/DNSCrypt/dnscrypt-protocol/master/ANONYMIZED-DNSCRYPT.txt |archive-date=25 October 2019 |website=[[GitHub]] |publisher=DNSCrypt}}</ref> Privacy of user/query pairs is created, since the ingress node does not know the content of the query, while the egress nodes does not know the identity of the client. DNSCrypt was first implemented in production by [[OpenDNS]] in December 2011. There are several free and open source software implementations that additionally integrate ODoH.<ref name="ODoH_(2022)">{{cite web |title=Oblivious DoH · DNSCrypt/dnscrypt-proxy Wiki |url=https://github.com/DNSCrypt/dnscrypt-proxy/wiki/Oblivious-DoH |website=GitHub |publisher=DNSCrypt project |access-date=28 July 2022 |language=en}}</ref> It is available for a variety of operating systems, including Unix, Apple iOS, Linux, Android, and Windows. |
|||
The party whom a [[domain name registrar]] invoices. |
|||
== |
==Security issues== |
||
Originally, security concerns were not major design considerations for DNS software or any software for deployment on the early Internet, as the network was not open for participation by the general public. However, the expansion of the Internet into the commercial sector in the 1990s changed the requirements for security measures to protect [[data integrity]] and user [[authentication]]. |
|||
Namely the [[authoritative name server]]s that host the domain name zone of a domain name. |
|||
Several vulnerability issues were discovered and exploited by malicious users. One such issue is [[DNS cache poisoning]], in which data is distributed to caching resolvers under the pretense of being an authoritative origin server, thereby polluting the data store with potentially false information and long expiration times (time-to-live). Subsequently, legitimate application requests may be redirected to network hosts operated with malicious intent. |
|||
DNS responses traditionally do not have a [[cryptographic signature]], leading to many attack possibilities; the [[Domain Name System Security Extensions]] (DNSSEC) modify DNS to add support for cryptographically signed responses.<ref>{{Cite journal |last1=Herzberg |first1=Amir |last2=Shulman |first2=Haya |date=2014-01-01 |title=Retrofitting Security into Network Protocols: The Case of DNSSEC |url=https://ieeexplore.ieee.org/document/6756846 |journal=IEEE Internet Computing |volume=18 |issue=1 |pages=66–71 |doi=10.1109/MIC.2014.14 |s2cid=12230888 |issn=1089-7801}}</ref> [[DNSCurve]] has been proposed as an alternative to DNSSEC. Other extensions, such as [[TSIG]], add support for cryptographic authentication between trusted peers and are commonly used to authorize zone transfer or dynamic update operations. |
|||
Techniques such as [[forward-confirmed reverse DNS]] can also be used to help validate DNS results. |
|||
DNS can also "leak" from otherwise secure or private connections, if attention is not paid to their configuration, and at times DNS has been used to bypass firewalls by malicious persons, and [[Data exfiltration|exfiltrate]] data, since it is often seen as innocuous. |
|||
=== DNS spoofing === |
|||
Some domain names may be used to achieve spoofing effects. For example, {{mono|{{not a typo|paypal.com}}}} and {{mono|{{not a typo|paypa1.com}}}} are different names, yet users may be unable to distinguish them in a graphical user interface depending on the user's chosen [[typeface]]. In many fonts the letter ''l'' and the numeral ''1'' look very similar or even identical. This problem, known as the [[IDN homograph attack]], is acute in systems that support [[internationalized domain name]]s, as many character codes in [[ISO 10646]] may appear identical on typical computer screens. This vulnerability is occasionally exploited in [[phishing]].<ref>APWG. "Global Phishing Survey: Domain Name Use and Trends in 1H2010." [http://www.apwg.org/reports/APWG_GlobalPhishingSurvey_1H2010.pdf 10/15/2010 apwg.org] {{Webarchive|url=https://web.archive.org/web/20121003212327/http://apwg.org/reports/APWG_GlobalPhishingSurvey_1H2010.pdf|archive-url=https://web.archive.org/web/20101025105629/http://apwg.org/reports/APWG_GlobalPhishingSurvey_1H2010.pdf|archive-date=2010-10-25|url-status=live|date=2012-10-03}}</ref> |
|||
=== DNSMessenger === |
|||
DNSMessenger<ref>{{Cite web |title=DNSMessenger (Malware Family) |url=https://malpedia.caad.fkie.fraunhofer.de/details/win.dnsmessenger |access-date=2024-12-11 |website=malpedia.caad.fkie.fraunhofer.de}}</ref><ref>{{Cite web |last=News |first=The Hacker |title=New Fileless Malware Uses DNS Queries To Receive PowerShell Commands |url=https://thehackernews.com/2017/03/powershell-dns-malware.html |access-date=2024-12-11 |website=The Hacker News |language=en}}</ref><ref>{{Cite web |date=2017-03-02 |title=Covert Channels and Poor Decisions: The Tale of DNSMessenger |url=https://blog.talosintelligence.com/dnsmessenger/ |access-date=2024-12-11 |website=Cisco Talos Blog |language=en}}</ref><ref>{{Cite AV media |url=https://www.youtube.com/watch?v=slNe6z9gFv0 |title=It's DNS again 😢 Did you know this Malware Hack? |date=2023-05-26 |last=David Bombal |access-date=2024-12-11 |via=YouTube}}</ref> is a type of cyber attack technique that uses the DNS to communicate and control malware remotely without relying on traditional web protocols that might raise red flags. The DNSMessenger attack is covert because DNS is primarily used for domain name resolution and is often not closely monitored by network security tools, making it an effective channel for attackers to exploit. |
|||
This technique involves the use of DNS TXT records to send commands to infected systems. Once malware has been surreptitiously installed on a victim's machine, it reaches out to a controlled domain to retrieve commands encoded in DNS text records. This form of malware communication is stealthy, as DNS requests are usually allowed through firewalls, and because DNS traffic is often seen as benign, these communications can bypass many network security defenses. |
|||
DNSMessenger attacks can enable a wide array of malicious activities, from data exfiltration to the delivery of additional payloads, all while remaining under the radar of traditional network security measures. Understanding and defending against such methods are crucial for maintaining robust cybersecurity. |
|||
==Privacy and tracking issues== |
|||
Originally designed as a public, hierarchical, distributed and heavily cached database, DNS protocol has no confidentiality controls. User queries and nameserver responses are being sent unencrypted which enables [[Sniffing attack|network packet sniffing]], [[DNS hijacking]], [[DNS spoofing|DNS cache poisoning]] and [[man-in-the-middle attack]]s. This deficiency is commonly used by cybercriminals and network operators for marketing purposes, user authentication on [[captive portal]]s and [[Internet censorship|censorship]].<ref name="Huston-2019">{{Cite journal|last=Huston|first=Geoff|date=July 2019|title=DNS Privacy and the IETF|url=http://ipj.dreamhosters.com/wp-content/uploads/2019/07/ipj222.pdf |archive-url=https://web.archive.org/web/20190930154208/http://ipj.dreamhosters.com/wp-content/uploads/2019/07/ipj222.pdf |archive-date=2019-09-30 |url-status=live|journal=The Internet Protocol Journal}}</ref> |
|||
User privacy is further exposed by proposals for increasing the level of client IP information in DNS queries (RFC 7871) for the benefit of [[Content delivery network|Content Delivery Networks]]. |
|||
The main approaches that are in use to counter privacy issues with DNS: |
|||
==Abuse and Regulation== |
|||
*[[VPN]]s, which move DNS resolution to the VPN operator and hide user traffic from local ISP, |
|||
Critics often claim abuse of administrative power over domain names. Particularly noteworthy was the [[VeriSign]] [[Site Finder]] system which redirected all unregistered .com and .net domains to a VeriSign webpage. For example, at a public meeting with VeriSign to air technical concerns about SiteFinder <ref>{{cite web |
|||
*[[Tor (network)|Tor]], which replaces traditional DNS resolution with anonymous [[.onion]] domains, hiding both name resolution and user traffic behind [[onion routing]] counter-surveillance, |
|||
| last = McCullagh |
|||
*[[Proxy server|Proxies]] and public DNS servers, which move the actual DNS resolution to a third-party provider, who usually promises little or no request logging and optional added features, such as DNS-level [[Ad blocking|advertisement]] or pornography blocking. |
|||
| first = Declan |
|||
**Public DNS servers can be queried using traditional DNS protocol, in which case they provide no protection from local surveillance, or [[DNS over HTTPS]], [[DNS over TLS]] and [[DNSCrypt]], which do provide such protection |
|||
| authorlink = Declan McCullagh |
|||
| title = VeriSign fends off critics at ICANN confab |
|||
| publisher = CNET News.com |
|||
| date = 2003-10-03 |
|||
| url = http://www.news.com/2100-1038-5088128.html |
|||
| accessdate = 2007-09-22 }}</ref>, numerous people, active in the [[Internet Engineering Task Force|IETF]] and other technical bodies, explained how they were surprised by VeriSign's changing the fundamental behavior of a major component of Internet infrastructure, not having obtained the customary consensus. SiteFinder, at first, assumed every Internet query was for a website, and it monetized queries for incorrect domain names, taking the user to VeriSign's search site. Unfortunately, other applications, such as many implementations of email, treat a lack of response to a domain name query as an indication that the domain does not exist, and that the message can be treated as undeliverable. The original VeriSign implementation broke this assumption for mail, because it would always resolve an erroneous domain name to that of SiteFinder. While VeriSign later changed SiteFinder's behaviour with regard to email, there was still widespread protest about VeriSign's action being more in its financial interest than in the interest of the Internet infrastructure component for which VeriSign was the steward. |
|||
Solutions preventing DNS inspection by local network operator are criticized for thwarting corporate network security policies and Internet censorship. They are also criticized from a privacy point of view, as giving away the DNS resolution to the hands of a small number of companies known for monetizing user traffic and for centralizing DNS name resolution, which is generally perceived as harmful for the Internet.<ref name="Huston-2019" /> |
|||
Despite widespread criticism, VeriSign only reluctantly removed it after the [[Internet Corporation for Assigned Names and Numbers]] (ICANN) threatened to revoke its contract to administer the root name servers. ICANN published the extensive set of letters exchanged, committee reports, and ICANN decisions <ref>{{cite web |
|||
| last = Internet Corporation for Assigned Names and Numbers (ICANN) |
|||
| authorlink = ICANN |
|||
| title = Verisign's Wildcard Service Deployment |
|||
| url = http://www.icann.org/topics/wildcard-history.html |
|||
| accessdate = 2007-09-22 }}</ref>. |
|||
{{Blockquote|text=Google is the dominant provider of the platform in [[Android (operating system)|Android]], the browser in Chrome, and the DNS resolver in the 8.8.8.8 service. Would this scenario be a case of a single corporate entity being in a position of overarching control of the entire namespace of the Internet? [[Netflix]] already fielded an app that used its own DNS resolution mechanism independent of the platform upon which the app was running. What if the [[Facebook]] app included DoH? What if [[Apple Inc.|Apple]]'s [[iOS]] used a DoH-resolution mechanism to bypass local DNS resolution and steer all DNS queries from Apple's platforms to a set of Apple-operated name resolvers?|sign=|source=DNS Privacy and the IETF}} |
|||
There is also significant disquiet regarding the United States' political influence over ICANN. This was a significant issue in the attempt to create a [[.xxx]] [[top-level domain]] and sparked greater interest in [[alternative DNS root]]s that would be beyond the control of any single country.{{Fact|date=September 2007}} |
|||
==Domain name registration== |
|||
Additionally, there are numerous accusations of domain name "front running", whereby registrars, when given whois queries, automatically register the domain name for themselves. Recently, Network Solutions has been accused of this.<ref>[http://slashdot.org/article.pl?sid=08/01/08/1920215 Slashdot | NSI Registers Every Domain Checked<!-- Bot generated title -->]</ref> |
|||
The right to use a domain name is delegated by domain name registrars which are accredited by the [[Internet Corporation for Assigned Names and Numbers]] (ICANN) or other organizations such as [[OpenNIC]], that are charged with overseeing the name and number systems of the Internet. In addition to ICANN, each top-level domain (TLD) is maintained and serviced technically by an administrative organization, operating a registry. A ''registry'' is responsible for operating the database of names within its authoritative zone, although the term is most often used for TLDs. A ''registrant'' is a person or organization who asked for domain registration.<ref name="rfc7719"/> The registry receives registration information from each domain name ''registrar'', which is authorized (accredited) to assign names in the corresponding zone and publishes the information using the [[WHOIS]] protocol. As of 2015, usage of [[Registration Data Access Protocol|RDAP]] is being considered.<ref>{{cite web |url=https://www.icann.org/news/announcement-2015-12-03-en |title=Registration Data Access Protocol (RDAP) Operational Profile for gTLD Registries and Registrars |author=<!--Staff writer(s); no by-line.--> |date=3 December 2015 |publisher=[[ICANN]] |access-date=18 December 2015 |url-status=dead |archive-url=https://web.archive.org/web/20151222144443/https://www.icann.org/news/announcement-2015-12-03-en |archive-date=22 December 2015 }}</ref> |
|||
ICANN publishes the complete list of TLDs, TLD registries, and domain name registrars. Registrant information associated with domain names is maintained in an online database accessible with the WHOIS service. For most of the more than 290 [[country code top-level domain]]s (ccTLDs), the domain registries maintain the WHOIS (Registrant, name servers, expiration dates, etc.) information. For instance, [[DENIC]], Germany NIC, holds the DE domain data. From about 2001, most [[Generic top-level domain]] (gTLD) registries have adopted this so-called ''thick'' registry approach, i.e. keeping the WHOIS data in central registries instead of registrar databases. |
|||
===Truth in Domain Names Act=== |
|||
{{Main|Anticybersquatting Consumer Protection Act}} |
|||
In the [[United States]], the "Truth in Domain Names Act" (actually the "Anticybersquatting Consumer Protection Act"), in combination with the [[PROTECT Act of 2003|PROTECT Act]], forbids the use of a misleading domain name with the intention of attracting people into viewing a [[Internet pornography|visual depiction of sexually explicit conduct]] on the Internet. |
|||
For top-level domains on COM and NET, a ''thin'' registry model is used. The domain registry (e.g., [[GoDaddy]], [[Directi|BigRock and PDR]], [[VeriSign]], etc., etc.) holds basic WHOIS data (i.e., registrar and name servers, etc.). Organizations, or registrants using ORG on the other hand, are on the [[Public Interest Registry]] exclusively. |
|||
==Internet Standards== |
|||
The Domain name system is defined by [[Request for Comments]] published by the [[Internet Engineering Task Force]] ([[Internet standard]]s). The following is a list of some of the [[Request for Comments|RFCs]] that pertain to DNS. |
|||
Some domain name registries, often called ''network information centers'' (NIC), also function as registrars to end-users, in addition to providing access to the WHOIS datasets. The top-level domain registries, such as for the domains COM, NET, and ORG use a registry-registrar model consisting of many domain name registrars.<ref>{{cite web|url=http://www.verisign.com/en_US/domain-names/domain-registrar/index.xhtml|title=Find a Registrar|publisher=VeriSign, Inc.|access-date=18 December 2015}}</ref> In this method of management, the registry only manages the domain name database and the relationship with the registrars. The ''registrants'' (users of a domain name) are customers of the registrar, in some cases through additional subcontracting of resellers. |
|||
* RFC 920 Specified original TLDs: .arpa, .com, .edu, .org, .gov, .mil and two-character country codes |
|||
* RFC 1032 Domain administrators guide |
|||
* RFC 1033 Domain administrators operations guide |
|||
* RFC 1034 Domain Names - Concepts and Facilities. |
|||
* RFC 1035 Domain Names - Implementation and Specification |
|||
* RFC 1101 DNS Encodings of Network Names and Other Types |
|||
* RFC 1123 Requirements for Internet Hosts -- Application and Support |
|||
* RFC 1912 Common DNS Operational and Configuration Errors |
|||
* RFC 1995 Incremental Zone Transfer in DNS |
|||
* RFC 1996 A Mechanism for Prompt Notification of Zone Changes (DNS NOTIFY) |
|||
* RFC 2136 Dynamic Updates in the domain name system (DNS UPDATE) |
|||
* RFC 2181 Clarifications to the DNS Specification |
|||
* RFC 2182 Selection and Operation of Secondary DNS Servers |
|||
* RFC 2308 Negative Caching of DNS Queries (DNS NCACHE) |
|||
* RFC 2317 Classless IN-ADDR.ARPA delegation |
|||
* RFC 2671 Extension Mechanisms for DNS (EDNS0) |
|||
* RFC 3696 Application Techniques for Checking and Transformation of Names |
|||
* RFC 4343 Domain Name System (DNS) Case Insensitivity Clarification |
|||
* RFC 4892 Requirements for a Mechanism Identifying a Name Server Instance |
|||
* RFC 5001 DNS Name Server Identifier Option (NSID) |
|||
==See also== |
==See also== |
||
{{Portal|Internet}} |
|||
* [[Dynamic DNS]] |
|||
{{Div col|colwidth=20em}}<!-- New links in alphabetical order please --> |
|||
* [[Alternative DNS root]] |
* [[Alternative DNS root]] |
||
* [[Comparison of DNS server software]] |
* [[Comparison of DNS server software]] |
||
* [[Decentralized object location and routing]] |
|||
* [[Round robin DNS]] |
|||
* [[ |
* [[Domain hijacking]] |
||
* [[DNS hijacking]] |
|||
* [[DNS Long-Lived Queries]] |
|||
* [[DNS management software]] |
* [[DNS management software]] |
||
* [[DNS over HTTPS]] |
|||
* [[DNS over TLS]] |
|||
* [[Hierarchical namespace]] |
|||
* [[IPv6 brokenness and DNS whitelisting]] |
|||
* [[Multicast DNS]] |
|||
* [[Public recursive name server]] |
|||
* [[resolv.conf]] |
|||
* [[Split-horizon DNS]] |
|||
* [[List of DNS record types]] |
|||
* [[List of managed DNS providers]] |
|||
* [[Zone file]] |
|||
* [[DNS leak]] |
|||
{{div col end}} |
|||
==References== |
==References== |
||
{{ |
{{Reflist|30em}} |
||
=== Sources === |
|||
* {{Cite book|url=https://books.google.com/books?id=C8ouDwAAQBAJ&q=9780735211759&pg=PP1|title=Broad Band: The Untold Story of the Women Who Made the Internet|last=Evans|first=Claire L.|publisher=Portfolio/Penguin|year=2018|isbn=9780735211759|location=New York}} |
|||
==Further reading== |
|||
===Standards track=== |
|||
<!-- NOTE: |
|||
Only RFCs in the standards track should be listed here. When status is not clearly indicated by the document, http://rfc-editor.org/ should be consulted for classification. |
|||
--> |
|||
* {{IETF RFC|1034|link=no}}, ''Domain Names - Concepts and Facilities'' |
|||
* {{IETF RFC|1035|link=no}}, ''Domain Names - Implementation and Specification'' |
|||
* {{IETF RFC|1123|link=no}}, ''Requirements for Internet Hosts—Application and Support'' |
|||
* {{IETF RFC|1995|link=no}}, ''Incremental Zone Transfer in DNS'' |
|||
* {{IETF RFC|1996|link=no}}, ''A Mechanism for Prompt Notification of Zone Changes (DNS NOTIFY)'' |
|||
* {{IETF RFC|2136|link=no}}, ''Dynamic Updates in the domain name system (DNS UPDATE)'' |
|||
* {{IETF RFC|2181|link=no}}, ''Clarifications to the DNS Specification'' |
|||
* {{IETF RFC|2308|link=no}}, ''Negative Caching of DNS Queries (DNS NCACHE)'' |
|||
* {{IETF RFC|3225|link=no}}, ''Indicating Resolver Support of DNSSEC'' |
|||
* {{IETF RFC|3226|link=no}}, ''DNSSEC and IPv6 A6 aware server/resolver message size requirements'' |
|||
* {{IETF RFC|3596|link=no}}, ''DNS Extensions to Support IP Version 6'' |
|||
* {{IETF RFC|3597|link=no}}, ''Handling of Unknown DNS Resource Record (RR) Types'' |
|||
* {{IETF RFC|4343|link=no}}, ''Domain Name System (DNS) Case Insensitivity Clarification'' |
|||
* {{IETF RFC|4592|link=no}}, ''The Role of Wildcards in the Domain Name System'' |
|||
* {{IETF RFC|4635|link=no}}, ''HMAC SHA TSIG Algorithm Identifiers'' |
|||
* {{IETF RFC|5001|link=no}}, ''DNS Name Server Identifier (NSID) Option'' |
|||
* {{IETF RFC|5011|link=no}}, ''Automated Updates of DNS Security (DNSSEC) Trust Anchors'' |
|||
* {{IETF RFC|5452|link=no}}, ''Measures for Making DNS More Resilient against Forged Answers'' |
|||
* {{IETF RFC|5890|link=no}}, ''Internationalized Domain Names for Applications (IDNA):Definitions and Document Framework'' |
|||
* {{IETF RFC|5891|link=no}}, ''Internationalized Domain Names in Applications (IDNA): Protocol'' |
|||
* {{IETF RFC|5892|link=no}}, ''The Unicode Code Points and Internationalized Domain Names for Applications (IDNA)'' |
|||
* {{IETF RFC|5893|link=no}}, ''Right-to-Left Scripts for Internationalized Domain Names for Applications (IDNA)'' |
|||
* {{IETF RFC|6672|link=no}}, ''Non-Terminal DNS Name Redirection'' |
|||
* {{IETF RFC|6891|link=no}}, ''Extension Mechanisms for DNS (EDNS0)'' |
|||
* {{IETF RFC|7766|link=no}}, ''DNS Transport over TCP - Implementation Requirements'' |
|||
* {{IETF RFC|8945|link=no}}, ''Secret Key Transaction Authentication for DNS (TSIG)'' |
|||
===Proposed security standards=== |
|||
* {{IETF RFC|4033|link=no}}, ''DNS Security Introduction and Requirements'' |
|||
* {{IETF RFC|4034|link=no}}, ''Resource Records for the DNS Security Extensions'' |
|||
* {{IETF RFC|4035|link=no}}, ''Protocol Modifications for the DNS Security Extensions'' |
|||
* {{IETF RFC|4509|link=no}}, ''Use of SHA-256 in DNSSEC Delegation Signer (DS) Resource Records'' |
|||
* {{IETF RFC|4470|link=no}}, ''Minimally Covering NSEC Records and DNSSEC On-line Signing'' |
|||
* {{IETF RFC|5155|link=no}}, ''DNS Security (DNSSEC) Hashed Authenticated Denial of Existence'' |
|||
* {{IETF RFC|5702|link=no}}, ''Use of SHA-2 Algorithms with RSA in DNSKEY and RRSIG Resource Records for DNSSEC'' |
|||
* {{IETF RFC|5910|link=no}}, ''Domain Name System (DNS) Security Extensions Mapping for the Extensible Provisioning Protocol (EPP)'' |
|||
* {{IETF RFC|5933|link=no}}, ''Use of GOST Signature Algorithms in DNSKEY and RRSIG Resource Records for DNSSEC'' |
|||
* {{IETF RFC|7830|link=no}}, ''The EDNS(0) Padding Option'' |
|||
* {{IETF RFC|7858|link=no}}, ''Specification for DNS over Transport Layer Security (TLS)'' |
|||
* {{IETF RFC|8310|link=no}}, ''Usage Profiles for DNS over TLS and DNS over DTLS'' |
|||
* {{IETF RFC|8484|link=no}}, ''DNS Queries over HTTPS (DoH)'' |
|||
===Experimental RFCs=== |
|||
* {{IETF RFC|1183|link=no}}, ''New DNS RR Definitions'' |
|||
===Best Current Practices=== |
|||
* {{IETF RFC|2182|link=no}}, ''Selection and Operation of Secondary DNS Servers'' (BCP 16) |
|||
* {{IETF RFC|2317|link=no}}, ''Classless IN-ADDR.ARPA delegation'' (BCP 20) |
|||
* {{IETF RFC|5625|link=no}}, ''DNS Proxy Implementation Guidelines'' (BCP 152) |
|||
* {{IETF RFC|6895|link=no}}, ''Domain Name System (DNS) IANA Considerations'' (BCP 42) |
|||
* {{IETF RFC|7720|link=no}}, ''DNS Root Name Service Protocol and Deployment Requirements'' (BCP 40) |
|||
===Informational RFCs=== |
|||
These RFCs are advisory in nature, but may provide useful information despite defining neither a standard or BCP. (RFC 1796) |
|||
* {{IETF RFC|1178|link=no}}, ''Choosing a Name for Your Computer'' (FYI 5) |
|||
* {{IETF RFC|1591|link=no}}, ''Domain Name System Structure and Delegation'' |
|||
* {{IETF RFC|1912|link=no}}, ''Common DNS Operational and Configuration Errors'' |
|||
* {{IETF RFC|2100|link=no}}, ''The Naming of Hosts'' |
|||
* {{IETF RFC|3696|link=no}}, ''Application Techniques for Checking and Transformation of Names'' |
|||
* {{IETF RFC|3833|link=no}}. ''Threat Analysis of the Domain Name System (DNS)'' |
|||
* {{IETF RFC|4892|link=no}}, ''Requirements for a Mechanism Identifying a Name Server Instance'' |
|||
* {{IETF RFC|5894|link=no}}, ''Internationalized Domain Names for Applications (IDNA):Background, Explanation, and Rationale'' |
|||
* {{IETF RFC|5895|link=no}}, ''Mapping Characters for Internationalized Domain Names in Applications (IDNA) 2008'' |
|||
* {{IETF RFC|8806|link=no}}, ''Running a Root Server Local to a Resolver'' |
|||
* {{IETF RFC|9076|link=no}}, ''DNS Privacy Considerations'' |
|||
* {{IETF RFC|9156|link=no}}, ''DNS Query Name Minimisation to Improve Privacy'' |
|||
* {{IETF RFC|9499|link=no}}, ''DNS Terminology'' |
|||
===Unknown=== |
|||
These RFCs have an official status of [[Request for Comments#Unknown|Unknown]], but due to their age are not clearly labeled as such. |
|||
* {{IETF RFC|920|link=no}}, ''Domain Requirements'' – Specified original top-level domains |
|||
* {{IETF RFC|1032|link=no}}, ''Domain Administrators Guide'' |
|||
* {{IETF RFC|1033|link=no}}, ''Domain Administrators Operations Guide'' |
|||
* {{IETF RFC|1101|link=no}}, ''DNS Encodings of Network Names and Other Types'' |
|||
==External links== |
==External links== |
||
{{Wikiversity | Domain Name System}} |
|||
* [http://www.acmqueue.com/modules.php?name=Content&pa=showpage&pid=481 DNS Complexity], [[Paul Vixie]], [[Association for Computing Machinery|ACM]] Queue |
|||
* {{cite web |url=https://queue.acm.org/detail.cfm?id=1242499 |title=DNS Complexity |first=Paul |last=Vixie |date=4 May 2007 |publisher=[[ACM Queue]] |url-status=live |archive-url=https://web.archive.org/web/20230329160719/https://queue.acm.org/detail.cfm?id=1242499 |archive-date=29 March 2023}} |
|||
* [http://www.zytrax.com/books/dns/ Open Source Guide - DNS for Rocket Scientists], an on-line technical book for further reading |
|||
* {{cite news|url=https://www.theguardian.com/technology/2014/feb/28/seven-people-keys-worldwide-internet-security-web|title=Meet the seven people who hold the keys to worldwide internet security|last=Ball|first=James|newspaper=[[The Guardian]]|publisher=Guardian News & Media Limited|date=28 February 2014|access-date=28 February 2014}} |
|||
* [http://www.bind9.net/ A listing of some DNS tools] |
|||
* {{Cite web |last=Kruger |first=Lennard G. |date=18 November 2016 |title=Internet Governance and the Domain Name System: Issues for Congress |url=https://sgp.fas.org/crs/misc/R42351.pdf |access-date=27 July 2024 |website=Congressional Research Service}} |
|||
* [http://www.circleid.com/topics/dns/ CircleID - Open news and opinion hub for all DNS related topics] |
|||
* [http://www.zytrax.com/books/dns/ Zytrax.com], Open Source Guide – DNS for Rocket Scientists. |
|||
* [https://messwithdns.net/ Mess with DNS] – site where you can do experiments with DNS. |
|||
{{Authority control}} |
|||
[[Category:Internet protocols]] |
|||
[[Category:domain name system|*]] |
|||
[[Category:Application layer protocols]] |
|||
[[Category:Internet properties established in 1983]] |
|||
[[af:Domeinnaamstelsel]] |
|||
[[Category:Domain Name System| ]] |
|||
[[ar:خادم اسم النطاق]] |
|||
[[Category:Application layer protocols]] |
|||
[[az:DNS]] |
|||
[[Category:Internet Standards]] |
|||
[[bn:ডোমেইন নেম সিস্টেম]] |
|||
[[bs:Domain name system]] |
|||
[[bg:Domain Name System]] |
|||
[[ca:Domain Name System]] |
|||
[[cs:Domain Name System]] |
|||
[[da:Domain Name System]] |
|||
[[de:Domain Name System]] |
|||
[[et:Domain Name System]] |
|||
[[el:Domain Name System]] |
|||
[[es:Domain Name System]] |
|||
[[eo:DNS]] |
|||
[[eu:Domain Name System]] |
|||
[[fr:Domain Name System]] |
|||
[[gl:Domain Name System]] |
|||
[[ko:DNS]] |
|||
[[hr:DNS]] |
|||
[[id:DNS]] |
|||
[[it:Domain Name System]] |
|||
[[he:Domain Name System]] |
|||
[[lv:DNS (protokols)]] |
|||
[[lt:DNS]] |
|||
[[li:Domain Name System]] |
|||
[[hu:Domain Name System]] |
|||
[[ms:Sistem Nama Domain]] |
|||
[[nl:Domain Name System]] |
|||
[[ja:Domain Name System]] |
|||
[[no:Domain Name System]] |
|||
[[pl:DNS]] |
|||
[[pt:Domain Name System]] |
|||
[[ro:Domain Name System]] |
|||
[[ru:DNS]] |
|||
[[sq:Domain Name Server]] |
|||
[[sk:Domain Name System]] |
|||
[[sl:DNS]] |
|||
[[sr:DNS]] |
|||
[[fi:DNS]] |
|||
[[sv:DNS]] |
|||
[[tl:Domain Name System]] |
|||
[[th:ระบบการตั้งชื่อโดเมน]] |
|||
[[vi:DNS]] |
|||
[[tr:DNS]] |
|||
[[uk:Доменна система імен]] |
|||
[[ur:نظام اسم ساحہ]] |
|||
[[yi:די.ען.עס. סערווער]] |
|||
[[zh:域名服務器]] |
Latest revision as of 01:56, 19 December 2024
Communication protocol | |
Abbreviation | DNS |
---|---|
Purpose | To identity resources on networks |
Introduction | November 1983 |
OSI layer | Application layer |
Port(s) | 53 |
RFC(s) | RFC 1034, RFC 1035 |
Internet protocol suite |
---|
Application layer |
Transport layer |
Internet layer |
Link layer |
Internet history timeline |
Early research and development:
Merging the networks and creating the Internet:
Commercialization, privatization, broader access leads to the modern Internet:
Examples of Internet services:
|
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 with domain names (identification strings) assigned to each of the associated entities. Most prominently, it translates readily memorized domain names to the numerical IP addresses needed for locating and identifying computer services and devices with the underlying network protocols.[1] The Domain Name System has been an essential component of the functionality of the Internet since 1985.
The Domain Name System delegates the responsibility of assigning domain names and mapping those names to Internet resources by designating authoritative name servers for each domain. Network administrators may delegate authority over subdomains of their allocated name space to other name servers. This mechanism provides distributed and fault-tolerant service and was designed to avoid a single large central database. In addition, the DNS specifies the technical functionality of the database service that is at its core. It defines the DNS protocol, a detailed specification of the data structures and data communication exchanges used in the DNS, as part of the Internet protocol suite.
The Internet maintains two principal namespaces, the domain name hierarchy and the IP address spaces.[2] The Domain Name System maintains the domain name hierarchy and provides translation services between it and the address spaces. Internet name servers and a communication protocol implement the Domain Name System. A DNS name server is a server that stores the DNS records for a domain; a DNS name server responds with answers to queries against its database.
The most common types of records stored in the DNS database are for start of authority (SOA), IP addresses (A and AAAA), SMTP mail exchangers (MX), name servers (NS), pointers for reverse DNS lookups (PTR), and domain name aliases (CNAME). Although not intended to be a general purpose database, DNS has been expanded over time to store records for other types of data for either automatic lookups, such as DNSSEC records, or for human queries such as responsible person (RP) records. As a general purpose database, the DNS has also been used in combating unsolicited email (spam) by storing a real-time blackhole list (RBL). The DNS database is traditionally stored in a structured text file, the zone file, but other database systems are common.
The Domain Name System originally used the User Datagram Protocol (UDP) as transport over IP. Reliability, security, and privacy concerns spawned the use of the Transmission Control Protocol (TCP) as well as numerous other protocol developments.
Function
[edit]An often-used analogy to explain the DNS is that it serves as the phone book for the Internet by translating human-friendly computer hostnames into IP addresses. For example, the hostname www.example.com
within the domain name example.com translates to the addresses 93.184.216.34 (IPv4) and 2606:2800:220:1:248:1893:25c8:1946 (IPv6). The DNS can be quickly and transparently updated, allowing a service's location on the network to change without affecting the end users, who continue to use the same hostname. Users take advantage of this when they use meaningful Uniform Resource Locators (URLs) and e-mail addresses without having to know how the computer actually locates the services.
An important and ubiquitous function of the DNS is its central role in distributed Internet services such as cloud services and content delivery networks.[3] When a user accesses a distributed Internet service using a URL, the domain name of the URL is translated to the IP address of a server that is proximal to the user. The key functionality of the DNS exploited here is that different users can simultaneously receive different translations for the same domain name, a key point of divergence from a traditional phone-book view of the DNS. This process of using the DNS to assign proximal servers to users is key to providing faster and more reliable responses on the Internet and is widely used by most major Internet services.[4]
The DNS reflects the structure of administrative responsibility on the Internet.[5] Each subdomain is a zone of administrative autonomy delegated to a manager. For zones operated by a registry, administrative information is often complemented by the registry's RDAP and WHOIS services. That data can be used to gain insight on, and track responsibility for, a given host on the Internet.[6]
History
[edit]Using a simpler, more memorable name in place of a host's numerical address dates back to the ARPANET era. The Stanford Research Institute (now SRI International) maintained a text file named HOSTS.TXT that mapped host names to the numerical addresses of computers on the ARPANET.[7][8] Elizabeth Feinler developed and maintained the first ARPANET directory.[9][10] Maintenance of numerical addresses, called the Assigned Numbers List, was handled by Jon Postel at the University of Southern California's Information Sciences Institute (ISI), whose team worked closely with SRI.[11]
Addresses were assigned manually. Computers, including their hostnames and addresses, were added to the primary file by contacting the SRI Network Information Center (NIC), directed by Feinler, via telephone during business hours.[12] Later, Feinler set up a WHOIS directory on a server in the NIC for retrieval of information about resources, contacts, and entities.[13] She and her team developed the concept of domains.[13] Feinler suggested that domains should be based on the location of the physical address of the computer.[14] Computers at educational institutions would have the domain edu, for example.[15] She and her team managed the Host Naming Registry from 1972 to 1989.[16]
By the early 1980s, maintaining a single, centralized host table had become slow and unwieldy and the emerging network required an automated naming system to address technical and personnel issues. Postel directed the task of forging a compromise between five competing proposals of solutions to Paul Mockapetris. Mockapetris instead created the Domain Name System in 1983 while at the University of Southern California.[12][17]
The Internet Engineering Task Force published the original specifications in RFC 882 and RFC 883 in November 1983.[18][19] These were updated in RFC 973 in January 1986.
In 1984, four UC Berkeley students, Douglas Terry, Mark Painter, David Riggle, and Songnian Zhou, wrote the first Unix name server implementation for the Berkeley Internet Name Domain, commonly referred to as BIND.[20] In 1985, Kevin Dunlap of DEC substantially revised the DNS implementation. Mike Karels, Phil Almquist, and Paul Vixie then took over BIND maintenance. Internet Systems Consortium was founded in 1994 by Rick Adams, Paul Vixie, and Carl Malamud, expressly to provide a home for BIND development and maintenance. BIND versions from 4.9.3 onward were developed and maintained by ISC, with support provided by ISC's sponsors. As co-architects/programmers, Bob Halley and Paul Vixie released the first production-ready version of BIND version 8 in May 1997. Since 2000, over 43 different core developers have worked on BIND.[21]
In November 1987, RFC 1034[22] and RFC 1035[5] superseded the 1983 DNS specifications. Several additional Request for Comments have proposed extensions to the core DNS protocols.[23]
Structure
[edit]Domain name space
[edit]The domain name space consists of a tree data structure. Each node or leaf in the tree has a label and zero or more resource records (RR), which hold information associated with the domain name. The domain name itself consists of the label, concatenated with the name of its parent node on the right, separated by a dot.[24]
The tree sub-divides into zones beginning at the root zone. A DNS zone may consist of as many domains and subdomains as the zone manager chooses. DNS can also be partitioned according to class where the separate classes can be thought of as an array of parallel namespace trees.[25]
Administrative responsibility for any zone may be divided by creating additional zones. Authority over the new zone is said to be delegated to a designated name server. The parent zone ceases to be authoritative for the new zone.[25]
Domain name syntax, internationalization
[edit]The definitive descriptions of the rules for forming domain names appear in RFC 1035, RFC 1123, RFC 2181, and RFC 5892. A domain name consists of one or more parts, technically called labels, that are conventionally concatenated, and delimited by dots, such as example.com.
The right-most label conveys the top-level domain; for example, the domain name www.example.com belongs to the top-level domain com.
The hierarchy of domains descends from right to left; each label to the left specifies a subdivision, or subdomain of the domain to the right. For example, the label example specifies a subdomain of the com domain, and www is a subdomain of example.com. This tree of subdivisions may have up to 127 levels.[26]
A label may contain zero to 63 characters, because the length is only allowed to take 6 bits. The null label of length zero is reserved for the root zone. The full domain name may not exceed the length of 253 characters in its textual representation (or 254 with the trailing dot).[22] In the internal binary representation of the DNS this maximum length of 253 requires 255 octets of storage, as it also stores the length of the first of many labels and adds last null byte.[5] 255 length is only achieved with at least 6 labels (counting the last null label).[citation needed]
Although no technical limitation exists to prevent domain name labels from using any character that is representable by an octet, hostnames use a preferred format and character set. The characters allowed in labels are a subset of the ASCII character set, consisting of characters a through z, A through Z, digits 0 through 9, and hyphen. This rule is known as the LDH rule (letters, digits, hyphen). Domain names are interpreted in a case-independent manner.[27] Labels may not start or end with a hyphen.[28] An additional rule requires that top-level domain names should not be all-numeric.[28]
The limited set of ASCII characters permitted in the DNS prevented the representation of names and words of many languages in their native alphabets or scripts. To make this possible, ICANN approved the Internationalizing Domain Names in Applications (IDNA) system, by which user applications, such as web browsers, map Unicode strings into the valid DNS character set using Punycode. In 2009, ICANN approved the installation of internationalized domain name country code top-level domains (ccTLDs). In addition, many registries of the existing top-level domain names (TLDs) have adopted the IDNA system, guided by RFC 5890, RFC 5891, RFC 5892, RFC 5893.
Name servers
[edit]The Domain Name System is maintained by a distributed database system, which uses the client–server model. The nodes of this database are the name servers. Each domain has at least one authoritative DNS server that publishes information about that domain and the name servers of any domains subordinate to it. The top of the hierarchy is served by the root name servers, the servers to query when looking up (resolving) a TLD.
Authoritative name server
[edit]An authoritative name server is a name server that only gives answers to DNS queries from data that have been configured by an original source, for example, the domain administrator or by dynamic DNS methods, in contrast to answers obtained via a query to another name server that only maintains a cache of data.
An authoritative name server can either be a primary server or a secondary server. Historically the terms master/slave and primary/secondary were sometimes used interchangeably[29] but the current practice is to use the latter form. A primary server is a server that stores the original copies of all zone records. A secondary server uses a special automatic updating mechanism in the DNS protocol in communication with its primary to maintain an identical copy of the primary records.
Every DNS zone must be assigned a set of authoritative name servers. This set of servers is stored in the parent domain zone with name server (NS) records.
An authoritative server indicates its status of supplying definitive answers, deemed authoritative, by setting a protocol flag, called the "Authoritative Answer" (AA) bit in its responses.[5] This flag is usually reproduced prominently in the output of DNS administration query tools, such as dig, to indicate that the responding name server is an authority for the domain name in question.[5]
When a name server is designated as the authoritative server for a domain name for which it does not have authoritative data, it presents a type of error called a "lame delegation" or "lame response".[30][31]
Operation
[edit]Address resolution mechanism
[edit]Domain name resolvers determine the domain name servers responsible for the domain name in question by a sequence of queries starting with the right-most (top-level) domain label.
For proper operation of its domain name resolver, a network host is configured with an initial cache (hints) of the known addresses of the root name servers. The hints are updated periodically by an administrator by retrieving a dataset from a reliable source.
Assuming the resolver has no cached records to accelerate the process, the resolution process starts with a query to one of the root servers. In typical operation, the root servers do not answer directly, but respond with a referral to more authoritative servers, e.g., a query for "www.wikipedia.org" is referred to the org servers. The resolver now queries the servers referred to, and iteratively repeats this process until it receives an authoritative answer. The diagram illustrates this process for the host that is named by the fully qualified domain name "www.wikipedia.org".
This mechanism would place a large traffic burden on the root servers, if every resolution on the Internet required starting at the root. In practice caching is used in DNS servers to off-load the root servers, and as a result, root name servers actually are involved in only a relatively small fraction of all requests.
Recursive and caching name server
[edit]In theory, authoritative name servers are sufficient for the operation of the Internet. However, with only authoritative name servers operating, every DNS query must start with recursive queries at the root zone of the Domain Name System and each user system would have to implement resolver software capable of recursive operation.[32]
To improve efficiency, reduce DNS traffic across the Internet, and increase performance in end-user applications, the Domain Name System supports DNS cache servers which store DNS query results for a period of time determined in the configuration (time-to-live) of the domain name record in question. Typically, such caching DNS servers also implement the recursive algorithm necessary to resolve a given name starting with the DNS root through to the authoritative name servers of the queried domain. With this function implemented in the name server, user applications gain efficiency in design and operation.
The combination of DNS caching and recursive functions in a name server is not mandatory; the functions can be implemented independently in servers for special purposes.
Internet service providers typically provide recursive and caching name servers for their customers. In addition, many home networking routers implement DNS caches and recursion to improve efficiency in the local network.
DNS resolvers
[edit]The client side of the DNS is called a DNS resolver. A resolver is responsible for initiating and sequencing the queries that ultimately lead to a full resolution (translation) of the resource sought, e.g., translation of a domain name into an IP address. DNS resolvers are classified by a variety of query methods, such as recursive, non-recursive, and iterative. A resolution process may use a combination of these methods.[22]
In a non-recursive query, a DNS resolver queries a DNS server that provides a record either for which the server is authoritative, or it provides a partial result without querying other servers. In case of a caching DNS resolver, the non-recursive query of its local DNS cache delivers a result and reduces the load on upstream DNS servers by caching DNS resource records for a period of time after an initial response from upstream DNS servers.
In a recursive query, a DNS resolver queries a single DNS server, which may in turn query other DNS servers on behalf of the requester. For example, a simple stub resolver running on a home router typically makes a recursive query to the DNS server run by the user's ISP. A recursive query is one for which the DNS server answers the query completely by querying other name servers as needed. In typical operation, a client issues a recursive query to a caching recursive DNS server, which subsequently issues non-recursive queries to determine the answer and send a single answer back to the client. The resolver, or another DNS server acting recursively on behalf of the resolver, negotiates use of recursive service using bits in the query headers. DNS servers are not required to support recursive queries.
The iterative query procedure is a process in which a DNS resolver queries a chain of one or more DNS servers. Each server refers the client to the next server in the chain, until the current server can fully resolve the request. For example, a possible resolution of www.example.com would query a global root server, then a "com" server, and finally an "example.com" server.
Circular dependencies and glue records
[edit]Name servers in delegations are identified by name, rather than by IP address. This means that a resolving name server must issue another DNS request to find out the IP address of the server to which it has been referred. If the name given in the delegation is a subdomain of the domain for which the delegation is being provided, there is a circular dependency.
In this case, the name server providing the delegation must also provide one or more IP addresses for the authoritative name server mentioned in the delegation. This information is called glue. The delegating name server provides this glue in the form of records in the additional section of the DNS response, and provides the delegation in the authority section of the response. A glue record is a combination of the name server and IP address.
For example, if the authoritative name server for example.org is ns1.example.org, a computer trying to resolve www.example.org first resolves ns1.example.org. As ns1 is contained in example.org, this requires resolving example.org first, which presents a circular dependency. To break the dependency, the name server for the top level domain org includes glue along with the delegation for example.org. The glue records are address records that provide IP addresses for ns1.example.org. The resolver uses one or more of these IP addresses to query one of the domain's authoritative servers, which allows it to complete the DNS query.
Record caching
[edit]A common approach to reduce the burden on DNS servers is to cache the results of name resolution locally or on intermediary resolver hosts. Each DNS query result comes with a time to live (TTL), which indicates how long the information remains valid before it needs to be discarded or refreshed. This TTL is determined by the administrator of the authoritative DNS server and can range from a few seconds to several days or even weeks.[33]
As a result of this distributed caching architecture, changes to DNS records do not propagate throughout the network immediately, but require all caches to expire and to be refreshed after the TTL. RFC 1912 conveys basic rules for determining appropriate TTL values.
Some resolvers may override TTL values, as the protocol supports caching for up to sixty-eight years or no caching at all. Negative caching, i.e. the caching of the fact of non-existence of a record, is determined by name servers authoritative for a zone which must include the Start of Authority (SOA) record when reporting no data of the requested type exists. The value of the minimum field of the SOA record and the TTL of the SOA itself is used to establish the TTL for the negative answer.
Reverse lookup
[edit]A reverse DNS lookup is a query of the DNS for domain names when the IP address is known. Multiple domain names may be associated with an IP address. The DNS stores IP addresses in the form of domain names as specially formatted names in pointer (PTR) records within the infrastructure top-level domain arpa. For IPv4, the domain is in-addr.arpa. For IPv6, the reverse lookup domain is ip6.arpa. The IP address is represented as a name in reverse-ordered octet representation for IPv4, and reverse-ordered nibble representation for IPv6.
When performing a reverse lookup, the DNS client converts the address into these formats before querying the name for a PTR record following the delegation chain as for any DNS query. For example, assuming the IPv4 address 208.80.152.2 is assigned to Wikimedia, it is represented as a DNS name in reverse order: 2.152.80.208.in-addr.arpa. When the DNS resolver gets a pointer (PTR) request, it begins by querying the root servers, which point to the servers of American Registry for Internet Numbers (ARIN) for the 208.in-addr.arpa zone. ARIN's servers delegate 152.80.208.in-addr.arpa to Wikimedia to which the resolver sends another query for 2.152.80.208.in-addr.arpa, which results in an authoritative response.
Client lookup
[edit]Users generally do not communicate directly with a DNS resolver. Instead DNS resolution takes place transparently in applications such as web browsers, e-mail clients, and other Internet applications. When an application makes a request that requires a domain name lookup, such programs send a resolution request to the DNS resolver in the local operating system, which in turn handles the communications required.
The DNS resolver will almost invariably have a cache (see above) containing recent lookups. If the cache can provide the answer to the request, the resolver will return the value in the cache to the program that made the request. If the cache does not contain the answer, the resolver will send the request to one or more designated DNS servers. In the case of most home users, the Internet service provider to which the machine connects will usually supply this DNS server: such a user will either have configured that server's address manually or allowed DHCP to set it; however, where systems administrators have configured systems to use their own DNS servers, their DNS resolvers point to separately maintained name servers of the organization. In any event, the name server thus queried will follow the process outlined above, until it either successfully finds a result or does not. It then returns its results to the DNS resolver; assuming it has found a result, the resolver duly caches that result for future use, and hands the result back to the software which initiated the request.
Broken resolvers
[edit]Some large ISPs have configured their DNS servers to violate rules, such as by disobeying TTLs, or by indicating that a domain name does not exist just because one of its name servers does not respond.[34]
Some applications such as web browsers maintain an internal DNS cache to avoid repeated lookups via the network. This practice can add extra difficulty when debugging DNS issues as it obscures the history of such data. These caches typically use very short caching times on the order of one minute.[35]
Internet Explorer represents a notable exception: versions up to IE 3.x cache DNS records for 24 hours by default. Internet Explorer 4.x and later versions (up to IE 8) decrease the default timeout value to half an hour, which may be changed by modifying the default configuration.[36]
When Google Chrome detects issues with the DNS server it displays a specific error message.
Other applications
[edit]The Domain Name System includes several other functions and features.
Hostnames and IP addresses are not required to match in a one-to-one relationship. Multiple hostnames may correspond to a single IP address, which is useful in virtual hosting, in which many web sites are served from a single host. Alternatively, a single hostname may resolve to many IP addresses to facilitate fault tolerance and load distribution to multiple server instances across an enterprise or the global Internet.
DNS serves other purposes in addition to translating names to IP addresses. For instance, mail transfer agents use DNS to find the best mail server to deliver e-mail: An MX record provides a mapping between a domain and a mail exchanger; this can provide an additional layer of fault tolerance and load distribution.
The DNS is used for efficient storage and distribution of IP addresses of blacklisted email hosts. A common method is to place the IP address of the subject host into the sub-domain of a higher level domain name, and to resolve that name to a record that indicates a positive or a negative indication.
For example:
- The address 203.0.113.5 is blacklisted. It points to 5.113.0.203.blacklist.example, which resolves to 127.0.0.1.
- The address 203.0.113.6 is not blacklisted and points to 6.113.0.203.blacklist.example. This hostname is either not configured, or resolves to 127.0.0.2.
E-mail servers can query blacklist.example to find out if a specific host connecting to them is in the blacklist. Many of such blacklists, either subscription-based or free of cost, are available for use by email administrators and anti-spam software.
To provide resilience in the event of computer or network failure, multiple DNS servers are usually provided for coverage of each domain. At the top level of global DNS, thirteen groups of root name servers exist, with additional "copies" of them distributed worldwide via anycast addressing.
Dynamic DNS (DDNS) updates a DNS server with a client IP address on-the-fly, for example, when moving between ISPs or mobile hot spots, or when the IP address changes administratively.
DNS message format
[edit]The DNS protocol uses two types of DNS messages, queries and responses; both have the same format. Each message consists of a header and four sections: question, answer, authority, and an additional space. A header field (flags) controls the content of these four sections.[22]
The header section consists of the following fields: Identification, Flags, Number of questions, Number of answers, Number of authority resource records (RRs), and Number of additional RRs. Each field is 16 bits long, and appears in the order given. The identification field is used to match responses with queries. The flag field consists of sub-fields as follows:
Field | Description | Length (bits) |
---|---|---|
QR | Indicates if the message is a query (0) or a reply (1) | 1 |
OPCODE | The type can be QUERY (standard query, 0), IQUERY (inverse query, 1), or STATUS (server status request, 2) | 4 |
AA | Authoritative Answer, in a response, indicates if the DNS server is authoritative for the queried hostname | 1 |
TC | TrunCation, indicates that this message was truncated due to excessive length | 1 |
RD | Recursion Desired, indicates if the client means a recursive query | 1 |
RA | Recursion Available, in a response, indicates if the replying DNS server supports recursion | 1 |
Z | Zero, reserved for future use | 3 |
RCODE | Response code, can be NOERROR (0), FORMERR (1, Format error), SERVFAIL (2), NXDOMAIN (3, Nonexistent domain), etc.[37] | 4 |
After the flags word, the header ends with four 16-bit integers which contain the number of records in each of the sections that follow, in the same order.
Offsets | 0 | 1 | 2 | 3 | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Octet | Bit | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
0 | 0 | Transaction ID | Flags | ||||||||||||||||||||||||||||||
QR | OPCODE | AA | TC | RD | RA | Z | RCODE | ||||||||||||||||||||||||||
4 | 32 | Number of questions | Number of answers | ||||||||||||||||||||||||||||||
8 | 64 | Number of authority RRs | Number of additional RRs |
Question section
[edit]The question section has a simpler format than the resource record format used in the other sections. Each question record (there is usually just one in the section) contains the following fields:
Field | Description | Length (octets) |
---|---|---|
NAME | Name of the requested resource | Variable |
TYPE | Type of RR (A, AAAA, MX, TXT, etc.) | 2 |
CLASS | Class code | 2 |
The domain name is broken into discrete labels which are concatenated; each label is prefixed by the length of that label.[38]
Resource records
[edit]The Domain Name System specifies a database of information elements for network resources. The types of information elements are categorized and organized with a list of DNS record types, the resource records (RRs). Each record has a type (name and number), an expiration time (time to live), a class, and type-specific data. Resource records of the same type are described as a resource record set (RRset), having no special ordering. DNS resolvers return the entire set upon query, but servers may implement round-robin ordering to achieve load balancing. In contrast, the Domain Name System Security Extensions (DNSSEC) work on the complete set of resource record in canonical order.
When sent over an Internet Protocol network, all records (answer, authority, and additional sections) use the common format specified in RFC 1035:[39]
Field | Description | Length (octets) |
---|---|---|
NAME | Name of the node to which this record pertains | Variable |
TYPE | Type of RR in numeric form (e.g., 15 for MX RRs) | 2 |
CLASS | Class code | 2 |
TTL | Count of seconds that the RR stays valid (The maximum is 231−1, which is about 68 years) | 4 |
RDLENGTH | Length of RDATA field (specified in octets) | 2 |
RDATA | Additional RR-specific data | Variable, as per RDLENGTH |
NAME is the fully qualified domain name of the node in the tree.[clarification needed] On the wire, the name may be shortened using label compression where ends of domain names mentioned earlier in the packet can be substituted for the end of the current domain name.
TYPE is the record type. It indicates the format of the data and it gives a hint of its intended use. For example, the A record is used to translate from a domain name to an IPv4 address, the NS record lists which name servers can answer lookups on a DNS zone, and the MX record specifies the mail server used to handle mail for a domain specified in an e-mail address.
RDATA is data of type-specific relevance, such as the IP address for address records, or the priority and hostname for MX records. Well known record types may use label compression in the RDATA field, but "unknown" record types must not (RFC 3597).
The CLASS of a record is set to IN (for Internet) for common DNS records involving Internet hostnames, servers, or IP addresses. In addition, the classes Chaos (CH) and Hesiod (HS) exist.[40] Each class is an independent name space with potentially different delegations of DNS zones.
In addition to resource records defined in a zone file, the domain name system also defines several request types that are used only in communication with other DNS nodes (on the wire), such as when performing zone transfers (AXFR/IXFR) or for EDNS (OPT).
Wildcard records
[edit]The domain name system supports wildcard DNS records which specify names that start with the asterisk label, *
, e.g., *.example
.[22][41] DNS records belonging to wildcard domain names specify rules for generating resource records within a single DNS zone by substituting whole labels with matching components of the query name, including any specified descendants. For example, in the following configuration, the DNS zone x.example specifies that all subdomains, including subdomains of subdomains, of x.example use the mail exchanger (MX) a.x.example. The A record for a.x.example is needed to specify the mail exchanger IP address. As this has the result of excluding this domain name and its subdomains from the wildcard matches, an additional MX record for the subdomain a.x.example, as well as a wildcarded MX record for all of its subdomains, must also be defined in the DNS zone.
x.example. MX 10 a.x.example.
*.x.example. MX 10 a.x.example.
*.a.x.example. MX 10 a.x.example.
a.x.example. MX 10 a.x.example.
a.x.example. AAAA 2001:db8::1
The role of wildcard records was refined in RFC 4592, because the original definition in RFC 1034 was incomplete and resulted in misinterpretations by implementers.[41]
Protocol extensions
[edit]The original DNS protocol had limited provisions for extension with new features. In 1999, Paul Vixie published in RFC 2671 (superseded by RFC 6891) an extension mechanism, called Extension Mechanisms for DNS (EDNS) that introduced optional protocol elements without increasing overhead when not in use. This was accomplished through the OPT pseudo-resource record that only exists in wire transmissions of the protocol, but not in any zone files. Initial extensions were also suggested (EDNS0), such as increasing the DNS message size in UDP datagrams.
Dynamic zone updates
[edit]Dynamic DNS updates use the UPDATE DNS opcode to add or remove resource records dynamically from a zone database maintained on an authoritative DNS server.[42] This facility is useful to register network clients into the DNS when they boot or become otherwise available on the network. As a booting client may be assigned a different IP address each time from a DHCP server, it is not possible to provide static DNS assignments for such clients.
Transport protocols
[edit]From the time of its origin in 1983 the DNS has used the User Datagram Protocol (UDP) for transport over IP. Its limitations have motivated numerous protocol developments for reliability, security, privacy, and other criteria, in the following decades.
DNS over UDP/TCP/53 (Do53)
[edit]UDP reserves port number 53 for servers listening to queries.[5] Such queries consist of a clear-text request sent in a single UDP packet from the client, responded to with a clear-text reply sent in a single UDP packet from the server. When the length of the answer exceeds 512 bytes and both client and server support Extension Mechanisms for DNS (EDNS), larger UDP packets may be used.[43] Use of DNS over UDP is limited by, among other things, its lack of transport-layer encryption, authentication, reliable delivery, and message length. In 1989, RFC 1123 specified optional Transmission Control Protocol (TCP) transport for DNS queries, replies and, particularly, zone transfers. Via fragmentation of long replies, TCP allows longer responses, reliable delivery, and re-use of long-lived connections between clients and servers. For larger responses, the server refers the client to TCP transport.
DNS over TLS (DoT)
[edit]DNS over TLS emerged as an IETF standard for encrypted DNS in 2016, utilizing Transport Layer Security (TLS) to protect the entire connection, rather than just the DNS payload. DoT servers listen on TCP port 853. RFC 7858 specifies that opportunistic encryption and authenticated encryption may be supported, but did not make either server or client authentication mandatory.
DNS over HTTPS (DoH)
[edit]DNS over HTTPS was developed as a competing standard for DNS query transport in 2018, tunneling DNS query data over HTTPS, which transports HTTP over TLS. DoH was promoted as a more web-friendly alternative to DNS since, like DNSCrypt, it uses TCP port 443, and thus looks similar to web traffic, though they are easily differentiable in practice without proper padding.[44]
DNS over QUIC (DoQ)
[edit]RFC 9250, published in 2022 by the Internet Engineering Task Force, describes DNS over QUIC. It has "privacy properties similar to DNS over TLS (DoT) [...], and latency characteristics similar to classic DNS over UDP". This method is not the same as DNS over HTTP/3.[45]
Oblivious DoH (ODoH) and predecessor Oblivious DNS (ODNS)
[edit]Oblivious DNS (ODNS) was invented and implemented by researchers at Princeton University and the University of Chicago as an extension to unencrypted DNS,[46] before DoH was standardized and widely deployed. Apple and Cloudflare subsequently deployed the technology in the context of DoH, as Oblivious DoH (ODoH).[47] ODoH combines ingress/egress separation (invented in ODNS) with DoH's HTTPS tunneling and TLS transport-layer encryption in a single protocol.[48]
DNS over Tor
[edit]DNS may be run over virtual private networks (VPNs) and tunneling protocols. A use which has become common since 2019 to warrant its own frequently used acronym is DNS over Tor. The privacy gains of Oblivious DNS can be garnered through the use of the preexisting Tor network of ingress and egress nodes, paired with the transport-layer encryption provided by TLS.[49]
DNSCrypt
[edit]The DNSCrypt protocol, which was developed in 2011 outside the IETF standards framework, introduced DNS encryption on the downstream side of recursive resolvers, wherein clients encrypt query payloads using servers' public keys, which are published in the DNS (rather than relying upon third-party certificate authorities) and which may in turn be protected by DNSSEC signatures.[50] DNSCrypt uses either TCP or UDP port 443, the same port as HTTPS encrypted web traffic. This introduced not only privacy regarding the content of the query, but also a significant measure of firewall-traversal capability. In 2019, DNSCrypt was further extended to support an "anonymized" mode, similar to the proposed "Oblivious DNS", in which an ingress node receives a query which has been encrypted with the public key of a different server, and relays it to that server, which acts as an egress node, performing the recursive resolution.[51] Privacy of user/query pairs is created, since the ingress node does not know the content of the query, while the egress nodes does not know the identity of the client. DNSCrypt was first implemented in production by OpenDNS in December 2011. There are several free and open source software implementations that additionally integrate ODoH.[52] It is available for a variety of operating systems, including Unix, Apple iOS, Linux, Android, and Windows.
Security issues
[edit]Originally, security concerns were not major design considerations for DNS software or any software for deployment on the early Internet, as the network was not open for participation by the general public. However, the expansion of the Internet into the commercial sector in the 1990s changed the requirements for security measures to protect data integrity and user authentication.
Several vulnerability issues were discovered and exploited by malicious users. One such issue is DNS cache poisoning, in which data is distributed to caching resolvers under the pretense of being an authoritative origin server, thereby polluting the data store with potentially false information and long expiration times (time-to-live). Subsequently, legitimate application requests may be redirected to network hosts operated with malicious intent.
DNS responses traditionally do not have a cryptographic signature, leading to many attack possibilities; the Domain Name System Security Extensions (DNSSEC) modify DNS to add support for cryptographically signed responses.[53] DNSCurve has been proposed as an alternative to DNSSEC. Other extensions, such as TSIG, add support for cryptographic authentication between trusted peers and are commonly used to authorize zone transfer or dynamic update operations.
Techniques such as forward-confirmed reverse DNS can also be used to help validate DNS results.
DNS can also "leak" from otherwise secure or private connections, if attention is not paid to their configuration, and at times DNS has been used to bypass firewalls by malicious persons, and exfiltrate data, since it is often seen as innocuous.
DNS spoofing
[edit]Some domain names may be used to achieve spoofing effects. For example, paypal.com and paypa1.com are different names, yet users may be unable to distinguish them in a graphical user interface depending on the user's chosen typeface. In many fonts the letter l and the numeral 1 look very similar or even identical. This problem, known as the IDN homograph attack, is acute in systems that support internationalized domain names, as many character codes in ISO 10646 may appear identical on typical computer screens. This vulnerability is occasionally exploited in phishing.[54]
DNSMessenger
[edit]DNSMessenger[55][56][57][58] is a type of cyber attack technique that uses the DNS to communicate and control malware remotely without relying on traditional web protocols that might raise red flags. The DNSMessenger attack is covert because DNS is primarily used for domain name resolution and is often not closely monitored by network security tools, making it an effective channel for attackers to exploit.
This technique involves the use of DNS TXT records to send commands to infected systems. Once malware has been surreptitiously installed on a victim's machine, it reaches out to a controlled domain to retrieve commands encoded in DNS text records. This form of malware communication is stealthy, as DNS requests are usually allowed through firewalls, and because DNS traffic is often seen as benign, these communications can bypass many network security defenses.
DNSMessenger attacks can enable a wide array of malicious activities, from data exfiltration to the delivery of additional payloads, all while remaining under the radar of traditional network security measures. Understanding and defending against such methods are crucial for maintaining robust cybersecurity.
Privacy and tracking issues
[edit]Originally designed as a public, hierarchical, distributed and heavily cached database, DNS protocol has no confidentiality controls. User queries and nameserver responses are being sent unencrypted which enables network packet sniffing, DNS hijacking, DNS cache poisoning and man-in-the-middle attacks. This deficiency is commonly used by cybercriminals and network operators for marketing purposes, user authentication on captive portals and censorship.[59]
User privacy is further exposed by proposals for increasing the level of client IP information in DNS queries (RFC 7871) for the benefit of Content Delivery Networks.
The main approaches that are in use to counter privacy issues with DNS:
- VPNs, which move DNS resolution to the VPN operator and hide user traffic from local ISP,
- Tor, which replaces traditional DNS resolution with anonymous .onion domains, hiding both name resolution and user traffic behind onion routing counter-surveillance,
- Proxies and public DNS servers, which move the actual DNS resolution to a third-party provider, who usually promises little or no request logging and optional added features, such as DNS-level advertisement or pornography blocking.
- Public DNS servers can be queried using traditional DNS protocol, in which case they provide no protection from local surveillance, or DNS over HTTPS, DNS over TLS and DNSCrypt, which do provide such protection
Solutions preventing DNS inspection by local network operator are criticized for thwarting corporate network security policies and Internet censorship. They are also criticized from a privacy point of view, as giving away the DNS resolution to the hands of a small number of companies known for monetizing user traffic and for centralizing DNS name resolution, which is generally perceived as harmful for the Internet.[59]
Google is the dominant provider of the platform in Android, the browser in Chrome, and the DNS resolver in the 8.8.8.8 service. Would this scenario be a case of a single corporate entity being in a position of overarching control of the entire namespace of the Internet? Netflix already fielded an app that used its own DNS resolution mechanism independent of the platform upon which the app was running. What if the Facebook app included DoH? What if Apple's iOS used a DoH-resolution mechanism to bypass local DNS resolution and steer all DNS queries from Apple's platforms to a set of Apple-operated name resolvers?
— DNS Privacy and the IETF
Domain name registration
[edit]The right to use a domain name is delegated by domain name registrars which are accredited by the Internet Corporation for Assigned Names and Numbers (ICANN) or other organizations such as OpenNIC, that are charged with overseeing the name and number systems of the Internet. In addition to ICANN, each top-level domain (TLD) is maintained and serviced technically by an administrative organization, operating a registry. A registry is responsible for operating the database of names within its authoritative zone, although the term is most often used for TLDs. A registrant is a person or organization who asked for domain registration.[23] The registry receives registration information from each domain name registrar, which is authorized (accredited) to assign names in the corresponding zone and publishes the information using the WHOIS protocol. As of 2015, usage of RDAP is being considered.[60]
ICANN publishes the complete list of TLDs, TLD registries, and domain name registrars. Registrant information associated with domain names is maintained in an online database accessible with the WHOIS service. For most of the more than 290 country code top-level domains (ccTLDs), the domain registries maintain the WHOIS (Registrant, name servers, expiration dates, etc.) information. For instance, DENIC, Germany NIC, holds the DE domain data. From about 2001, most Generic top-level domain (gTLD) registries have adopted this so-called thick registry approach, i.e. keeping the WHOIS data in central registries instead of registrar databases.
For top-level domains on COM and NET, a thin registry model is used. The domain registry (e.g., GoDaddy, BigRock and PDR, VeriSign, etc., etc.) holds basic WHOIS data (i.e., registrar and name servers, etc.). Organizations, or registrants using ORG on the other hand, are on the Public Interest Registry exclusively.
Some domain name registries, often called network information centers (NIC), also function as registrars to end-users, in addition to providing access to the WHOIS datasets. The top-level domain registries, such as for the domains COM, NET, and ORG use a registry-registrar model consisting of many domain name registrars.[61] In this method of management, the registry only manages the domain name database and the relationship with the registrars. The registrants (users of a domain name) are customers of the registrar, in some cases through additional subcontracting of resellers.
See also
[edit]- Alternative DNS root
- Comparison of DNS server software
- Decentralized object location and routing
- Domain hijacking
- DNS hijacking
- DNS Long-Lived Queries
- DNS management software
- DNS over HTTPS
- DNS over TLS
- Hierarchical namespace
- IPv6 brokenness and DNS whitelisting
- Multicast DNS
- Public recursive name server
- resolv.conf
- Split-horizon DNS
- List of DNS record types
- List of managed DNS providers
- Zone file
- DNS leak
References
[edit]- ^ Wu, Hao; Dang, Xianglei; Wang, Lidong; He, Longtao (2016). "Information fusion-based method for distributed domain name system cache poisoning attack detection and identification". IET Information Security. 10 (1): 37–44. doi:10.1049/iet-ifs.2014.0386. ISSN 1751-8717. S2CID 45091791.
- ^ RFC 781, Internet Protocol - DARPA Internet Program Protocol Specification, Information Sciences Institute, J. Postel (Ed.), The Internet Society (September 1981)
- ^ J. Dilley, B. Maggs, J. Parikh, H. Prokop, R. Sitaraman, and B. Weihl. "Globally Distributed Content Delivery, IEEE Internet Computing, September/October 2002, pp. 50–58" (PDF). Archived (PDF) from the original on 2015-04-17.
- ^ Nygren., E.; Sitaraman R. K.; Sun, J. (2010). "The Akamai Network: A Platform for High-Performance Internet Applications" (PDF). ACM SIGOPS Operating Systems Review. 44 (3): 2–19. doi:10.1145/1842733.1842736. S2CID 207181702. Archived (PDF) from the original on 2010-12-02. Retrieved November 19, 2012.
- ^ a b c d e f Mockapetris, Paul (November 1987). Domain Names - Implementation and Specification. IETF. doi:10.17487/RFC1035. RFC 1035.
- ^ Champika Wijayatunga (February 2015). "DNS Abuse Handling" (PDF). APNIC. Archived (PDF) from the original on 2015-12-22. Retrieved 18 December 2016.
- ^ J. Klensin (February 2003). Role of the Domain Name System (DNS). Network Working Group. doi:10.17487/RFC3467. RFC 3467. Informational.
- ^ Liu, Cricket; Albitz, Paul (2006). DNS and BIND (5th ed.). O'Reilly Media. p. 3. ISBN 978-0-596-10057-5.
- ^ Evans 2018, p. 112.
- ^ Evans 2018, p. 113.
- ^ IEEE Annals [3B2-9] man2011030074.3d 29/7/011 11:54 Page 74
- ^ a b "Why Does the Net Still Work on Christmas? Paul Mockapetris - Internet Hall of Fame". internethalloffame.org. 23 July 2012.
- ^ a b Evans 2018, p. 119.
- ^ Evans 2018, p. 120.
- ^ Evans 2018, p. 120–121.
- ^ "Elizabeth Feinler". Internet Hall of Fame. Archived from the original on 14 September 2018. Retrieved 2018-11-25.
- ^ "Paul Mockapetris | Internet Hall of Fame". internethalloffame.org. Retrieved 2020-02-12.
- ^ Andrei Robachevsky (26 November 2013). "Happy 30th Birthday, DNS!". Internet Society. Retrieved 18 December 2015.
- ^ Elizabeth Feinler, IEEE Annals, 3B2-9 man2011030074.3d 29/7/011 11:54 Page 74
- ^ Terry, Douglas B.; et al. (June 12–15, 1984). "The Berkeley Internet Name Domain Server". Summer Conference, Salt Lake City 1984: Proceedings. USENIX Association Software Tools Users Group. pp. 23–31.
- ^ Internet Systems Consortium. "The History of BIND". History of BIND. Archived from the original on 2019-06-30. Retrieved 4 April 2022.
- ^ a b c d e Mockapetris, Paul (November 1987). Domain Names - Domain Concepts and Facilities. IETF. doi:10.17487/RFC1034. RFC 1034.
- ^ a b Paul Hoffman; Andrew Sullivan; Kazunori Fujiwara (December 2015). DNS Terminology. IETF. doi:10.17487/RFC7719. RFC 7719. Retrieved 18 December 2015.
- ^ Paul Mockapetris (November 1987). "Name space specifications and terminology". Domain Names - Domain Concepts and Facilities. IETF. sec. 3.1. doi:10.17487/RFC1034. RFC 1034. Retrieved 17 December 2015.
- ^ a b Paul Mockapetris (November 1987). "How the database is divided into zones". Domain Names - Domain Concepts and Facilities. IETF. sec. 4.2. doi:10.17487/RFC1034. RFC 1034. Retrieved 17 December 2015.
- ^ Lindsay, David (2007). International Domain Name Law: ICANN and the UDRP. Bloomsbury Publishing. p. 8. ISBN 978-1-84113-584-7.
- ^ D. Eastlake III (January 2006). Domain Name System (DNS) Case Insensitivity Clarification. Network Working Group. doi:10.17487/RFC4343. RFC 4343. Proposed Standard. Updated by RFC 5890. Updates RFC 1034, 1035 and 2181.
- ^ a b J. Klensin (February 2004). Application Techniques for Checking and Transformation of Names. Network Working Group. doi:10.17487/RFC3696. RFC 3696. Informational.
- ^ Fujiwara, Kazunori; Sullivan, Andrew; Hoffman, Paul (2024). "DNS Terminology". tools.ietf.org. doi:10.17487/RFC9499. Retrieved 2024-07-01.
- ^ Nemeth, Evi; Snyder, Garth; Hein, Trent R. (2006-10-30). Linux Administration Handbook. Addison-Wesley Professional. ISBN 978-0-13-700275-7.
- ^ Bissyande, Tegawendé F.; Sie, Oumarou (2017-10-09). e-Infrastructure and e-Services for Developing Countries: 8th International Conference, AFRICOMM 2016, Ouagadougou, Burkina Faso, December 6-7, 2016, Proceedings. Springer. ISBN 978-3-319-66742-3.
- ^ "DNS zone". IONOS Digitalguide. 27 January 2022. Retrieved 2022-03-31.
- ^ "What is DNS propagation?". IONOS Digitalguide. Retrieved 2022-04-22.
- ^ "Providers ignoring DNS TTL?". Slashdot. 2005. Retrieved 2012-04-07.
- ^ Ben Anderson (7 September 2011). "Ben Anderson: Why Web Browser DNS Caching Can Be A Bad Thing". Retrieved 20 October 2014.
- ^ "How Internet Explorer uses the cache for DNS host entries". Microsoft Corporation. 2004. Retrieved 2010-07-25.
- ^ "Domain Name System (DNS) Parameters". IANA. DNS RCODEs. Retrieved 14 June 2019.
- ^ James F. Kurose and Keith W. Ross, Computer Networking: A Top-Down Approach, 6th ed. Essex, England: Pearson Educ. Limited, 2012
- ^ RFC 5395, Domain Name System (DNS) IANA Considerations, D. Eastlake 3rd (November 2008), Section 3
- ^ RFC 5395, Domain Name System (DNS) IANA Considerations, D. Eastlake 3rd (November 2008), p. 11
- ^ a b RFC 4592, The Role of Wildcards in the Domain Name System, E. Lewis (July 2006)
- ^ S. Thomson; Y. Rekhter; J. Bound (April 1997). P. Vixie (ed.). Dynamic Updates in the Domain Name System (DNS UPDATE). Network Working Group. doi:10.17487/RFC2136. RFC 2136. Proposed Standard. Updates RFC 1035. Updated by RFC 3007, 4033, 4034 and 4035.
- ^ RFC 2671, Extension Mechanisms for DNS (EDNS0), P. Vixie (August 1999)
- ^ Csikor, Levente; Divakaran, Dinil Mon (February 2021). "Privacy of DNS over HTTPS: Requiem for a Dream?" (PDF). National University of Singapore.
We investigate whether DoH traffic is distinguishable from encrypted Web traffic. To this end, we train a machine learning model to classify HTTPS traffic as either Web or DoH. With our DoH identification model in place, we show that an authoritarian ISP can identify ≈97.4% of the DoH packets correctly while only misclassifying 1 in 10,000 Web packets.
- ^ Huitema, Christian; Dickinson, Sara; Mankin, Allison (May 2022). DNS over Dedicated QUIC Connections. Internet Engineering Task Force. doi:10.17487/RFC9250. RFC 9250.
- ^ Schmitt, Paul; Edmundson, Anne; Feamster, Nick (2019). "Oblivious DNS: Practical Privacy for DNS Queries" (PDF). Privacy Enhancing Technologies. 2019 (2): 228–244. arXiv:1806.00276. doi:10.2478/popets-2019-0028. S2CID 44126163. Archived (PDF) from the original on 2022-01-21.
- ^ "Oblivious DNS Deployed by Cloudflare and Apple". 9 December 2020. Retrieved 27 July 2022.
- ^ Pauly, Tommy (2 September 2021). "Oblivious DNS Over HTTPS". IETF.
- ^ Muffett, Alec (February 2021). ""No Port 53, Who Dis?" A Year of DNS over HTTPS over Tor" (PDF). Network and Distributed System Security Symposium. Archived (PDF) from the original on 2021-03-21.
DNS over HTTPS (DoH) obviates many but not all of the risks, and its transport protocol (i.e. HTTPS) raises concerns of privacy due to (e.g.) 'cookies.' The Tor Network exists to provide TCP circuits with some freedom from tracking, surveillance, and blocking. Thus: In combination with Tor, DoH, and the principle of "Don't Do That, Then" (DDTT) to mitigate request fingerprinting, I describe DNS over HTTPS over Tor (DoHoT).
- ^ Ulevitch, David (6 December 2011). "DNSCrypt – Critical, fundamental, and about time". Cisco Umbrella. Archived from the original on 1 July 2020.
- ^ "Anonymized DNSCrypt specification". GitHub. DNSCrypt. Archived from the original on 25 October 2019.
- ^ "Oblivious DoH · DNSCrypt/dnscrypt-proxy Wiki". GitHub. DNSCrypt project. Retrieved 28 July 2022.
- ^ Herzberg, Amir; Shulman, Haya (2014-01-01). "Retrofitting Security into Network Protocols: The Case of DNSSEC". IEEE Internet Computing. 18 (1): 66–71. doi:10.1109/MIC.2014.14. ISSN 1089-7801. S2CID 12230888.
- ^ APWG. "Global Phishing Survey: Domain Name Use and Trends in 1H2010." 10/15/2010 apwg.org Archived 2012-10-03 at the Wayback Machine
- ^ "DNSMessenger (Malware Family)". malpedia.caad.fkie.fraunhofer.de. Retrieved 2024-12-11.
- ^ News, The Hacker. "New Fileless Malware Uses DNS Queries To Receive PowerShell Commands". The Hacker News. Retrieved 2024-12-11.
{{cite web}}
:|last=
has generic name (help) - ^ "Covert Channels and Poor Decisions: The Tale of DNSMessenger". Cisco Talos Blog. 2017-03-02. Retrieved 2024-12-11.
- ^ David Bombal (2023-05-26). It's DNS again 😢 Did you know this Malware Hack?. Retrieved 2024-12-11 – via YouTube.
- ^ a b Huston, Geoff (July 2019). "DNS Privacy and the IETF" (PDF). The Internet Protocol Journal. Archived (PDF) from the original on 2019-09-30.
- ^ "Registration Data Access Protocol (RDAP) Operational Profile for gTLD Registries and Registrars". ICANN. 3 December 2015. Archived from the original on 22 December 2015. Retrieved 18 December 2015.
- ^ "Find a Registrar". VeriSign, Inc. Retrieved 18 December 2015.
Sources
[edit]- Evans, Claire L. (2018). Broad Band: The Untold Story of the Women Who Made the Internet. New York: Portfolio/Penguin. ISBN 9780735211759.
Further reading
[edit]Standards track
[edit]- RFC 1034, Domain Names - Concepts and Facilities
- RFC 1035, Domain Names - Implementation and Specification
- RFC 1123, Requirements for Internet Hosts—Application and Support
- RFC 1995, Incremental Zone Transfer in DNS
- RFC 1996, A Mechanism for Prompt Notification of Zone Changes (DNS NOTIFY)
- RFC 2136, Dynamic Updates in the domain name system (DNS UPDATE)
- RFC 2181, Clarifications to the DNS Specification
- RFC 2308, Negative Caching of DNS Queries (DNS NCACHE)
- RFC 3225, Indicating Resolver Support of DNSSEC
- RFC 3226, DNSSEC and IPv6 A6 aware server/resolver message size requirements
- RFC 3596, DNS Extensions to Support IP Version 6
- RFC 3597, Handling of Unknown DNS Resource Record (RR) Types
- RFC 4343, Domain Name System (DNS) Case Insensitivity Clarification
- RFC 4592, The Role of Wildcards in the Domain Name System
- RFC 4635, HMAC SHA TSIG Algorithm Identifiers
- RFC 5001, DNS Name Server Identifier (NSID) Option
- RFC 5011, Automated Updates of DNS Security (DNSSEC) Trust Anchors
- RFC 5452, Measures for Making DNS More Resilient against Forged Answers
- RFC 5890, Internationalized Domain Names for Applications (IDNA):Definitions and Document Framework
- RFC 5891, Internationalized Domain Names in Applications (IDNA): Protocol
- RFC 5892, The Unicode Code Points and Internationalized Domain Names for Applications (IDNA)
- RFC 5893, Right-to-Left Scripts for Internationalized Domain Names for Applications (IDNA)
- RFC 6672, Non-Terminal DNS Name Redirection
- RFC 6891, Extension Mechanisms for DNS (EDNS0)
- RFC 7766, DNS Transport over TCP - Implementation Requirements
- RFC 8945, Secret Key Transaction Authentication for DNS (TSIG)
Proposed security standards
[edit]- RFC 4033, DNS Security Introduction and Requirements
- RFC 4034, Resource Records for the DNS Security Extensions
- RFC 4035, Protocol Modifications for the DNS Security Extensions
- RFC 4509, Use of SHA-256 in DNSSEC Delegation Signer (DS) Resource Records
- RFC 4470, Minimally Covering NSEC Records and DNSSEC On-line Signing
- RFC 5155, DNS Security (DNSSEC) Hashed Authenticated Denial of Existence
- RFC 5702, Use of SHA-2 Algorithms with RSA in DNSKEY and RRSIG Resource Records for DNSSEC
- RFC 5910, Domain Name System (DNS) Security Extensions Mapping for the Extensible Provisioning Protocol (EPP)
- RFC 5933, Use of GOST Signature Algorithms in DNSKEY and RRSIG Resource Records for DNSSEC
- RFC 7830, The EDNS(0) Padding Option
- RFC 7858, Specification for DNS over Transport Layer Security (TLS)
- RFC 8310, Usage Profiles for DNS over TLS and DNS over DTLS
- RFC 8484, DNS Queries over HTTPS (DoH)
Experimental RFCs
[edit]- RFC 1183, New DNS RR Definitions
Best Current Practices
[edit]- RFC 2182, Selection and Operation of Secondary DNS Servers (BCP 16)
- RFC 2317, Classless IN-ADDR.ARPA delegation (BCP 20)
- RFC 5625, DNS Proxy Implementation Guidelines (BCP 152)
- RFC 6895, Domain Name System (DNS) IANA Considerations (BCP 42)
- RFC 7720, DNS Root Name Service Protocol and Deployment Requirements (BCP 40)
Informational RFCs
[edit]These RFCs are advisory in nature, but may provide useful information despite defining neither a standard or BCP. (RFC 1796)
- RFC 1178, Choosing a Name for Your Computer (FYI 5)
- RFC 1591, Domain Name System Structure and Delegation
- RFC 1912, Common DNS Operational and Configuration Errors
- RFC 2100, The Naming of Hosts
- RFC 3696, Application Techniques for Checking and Transformation of Names
- RFC 3833. Threat Analysis of the Domain Name System (DNS)
- RFC 4892, Requirements for a Mechanism Identifying a Name Server Instance
- RFC 5894, Internationalized Domain Names for Applications (IDNA):Background, Explanation, and Rationale
- RFC 5895, Mapping Characters for Internationalized Domain Names in Applications (IDNA) 2008
- RFC 8806, Running a Root Server Local to a Resolver
- RFC 9076, DNS Privacy Considerations
- RFC 9156, DNS Query Name Minimisation to Improve Privacy
- RFC 9499, DNS Terminology
Unknown
[edit]These RFCs have an official status of Unknown, but due to their age are not clearly labeled as such.
- RFC 920, Domain Requirements – Specified original top-level domains
- RFC 1032, Domain Administrators Guide
- RFC 1033, Domain Administrators Operations Guide
- RFC 1101, DNS Encodings of Network Names and Other Types
External links
[edit]- Vixie, Paul (4 May 2007). "DNS Complexity". ACM Queue. Archived from the original on 29 March 2023.
- Ball, James (28 February 2014). "Meet the seven people who hold the keys to worldwide internet security". The Guardian. Guardian News & Media Limited. Retrieved 28 February 2014.
- Kruger, Lennard G. (18 November 2016). "Internet Governance and the Domain Name System: Issues for Congress" (PDF). Congressional Research Service. Retrieved 27 July 2024.
- Zytrax.com, Open Source Guide – DNS for Rocket Scientists.
- Mess with DNS – site where you can do experiments with DNS.