DNS is Domain Name System which converts domain name to IP addresses. Domain names -> IP Example : play.google.com -> 185.056.012.155
The Domain Name System 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.
Port 53 is used. UDP is used. Total 128 levels and level 0 is root. Root label is empty , each node has name(maximum 63 characters) .
DNS is phonebook of Internet. Domain name is searched and they return IP. Remebering numerical values that changes frequently is not the best way to remember any website. DNS is used to resolve domain names to IP’s so that we only have to remember articular string.
**Flat name architecture : ** There is no clear relationship between names .
**Hierarchical Name Architecture : ** There is defined relationship between names spaces.
A root server accepts a recursive resolver’s query which includes a domain name, and the root nameserver responds by directing the recursive resolver to a TLD nameserver, based on the extension of that domain (.com, .net, .org, etc.). 13 Root name server(a-m).
A TLD nameserver maintains information for all the domain names that share a common domain extension, such as .com, .net, or whatever comes after the last dot in a url. For example, a .com TLD nameserver contains information for every website that ends in ‘.com’. If a user was searching for google.com, after receiving a response from a root nameserver, the recursive resolver would then send a query to a .com TLD nameserver, which would respond by pointing to the authoritative nameserver for that domain.
When a recursive resolver receives a response from a TLD nameserver, that response will direct the resolver to an authoritative nameserver. The authoritative nameserver is usually the resolver’s last step in the journey for an IP address. The authoritative nameserver contains information specific to the domain name it serves (e.g. google.com) and it can provide a recursive resolver with the IP address of that server found in the DNS A record, or if the domain has a CNAME record it will provide the recursive resolver with an alias domain, at which point the recursive resolver will have to perform a whole new DNS lookup to procure a record from an authoritative nameserver (often an A record containing an IP address).
It is server which stores file about its zone. I tis authorized to create , maintain and update the zone filie.
It is used for backup to primary server , it doesn’t have authority to create or update zone file.
A - Resolves hostname to IPv4 AAAA - Resolves hostname to IPv6 NS - Reference to Domain name server MX - Mail server CNAME - domain alias TXT - text records SOA - Domain authority SRV - Service records PTR - IP address to hostname