Domain Name System
DNS
Domain Name System (DNS) is used to resolve domain names (such as www.google.com) to IP addresses.
The translation from a domain name to IP address occurs through a process called DNS resolution or DNS lookup. There are four types of DNS Name Servers used for DNS resolution, and they process a lookup request in the following order:
- Resolver Name Server (DNS Resolver) - interacts with clients such as web browsers and is the initial server in a DNS lookup. The resolver either directs the request to the root name server or returns cahced data. Since there might be clients that request the same domain name, the resolver caches the IP addres of the domain and returns it directly.
- Root Name Server - responds to the resolver's request by directing the request to a TLD server based on the extension of the domain name (.com, .org, .net)
- TLD Name Server - a TLD (Top Level Domain) server holds information for all the domain names that have the same extension. For example the
.com
TLD server holds the information about which authoritative name server holds the DNS records for the domain name. - Authoritative Name Server - holds the actual DNS record which contains the IP address of the server that corresponds to the domain name.