|internet protocol suite|
the domain name system (dns) is a hierarchical and decentralized naming system for computers, services, or other resources connected to the internet or a private network. it associates various information with domain names assigned to each of the participating entities. most prominently, it translates more readily memorized domain names to the numerical ip addresses needed for locating and identifying computer services and devices with the underlying network protocols. by providing a worldwide, distributed directory service, 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 sub-domains 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.
the domain name system also 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 internet protocol (ip) address spaces. 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.