DNS, Domain Name Server Is Responsible For Getting The IP Address of A Particular Domain Name
DNS, Domain Name Server Is Responsible For Getting The IP Address of A Particular Domain Name
DNS, Domain Name Server Is Responsible For Getting The IP Address of A Particular Domain Name
This procedure is just not a matching up of a domain name to an IP address but, apart from DNS stores a
lot of information in it’s file. This file contains all relevant information of a particular domain. These
informations can be mail, ip, services, protocols, etc.
DNS Resolution -
1> Accessing the internet requires an active internet connection. This internet connection is
provided by the Internet Service Provider ISP. The ISP has a Domain Name Server Resolver or
DNS Resolver.
2> Connecting to the internet through ISP.
3> Entering a particular website that is our domain name say www.example.com.
4> This requests goes to the ISP’s DNS resolver.
5> Now, the domain is divided into subdomains. The DNS resolver starts to scan the domain name
from right to left. This is done because first it’s necessary to search for the root nameserver.
6> The root nameserver here in the example is .com. This searches the zone file for the nameserver
that has root name server of .com. Zone file is the file that contains all the information about a
particular domain. It consists IP, services, mail information, certificates, etc. So, zone file is like a
phonebook.
7> This returns result with searching for name server with .com. This operation goes to search for
subdomain. The root nameserver now quesries the Top Level Domain name server TLD.
8> ISP’ DNS resolver now queries root nameserver for proper TLD name server.
A domain may consist of subdomains. A domain name may contain second level domain or third
level domain. For e.g. mail.google.com. Here, mail is second level domain.
9> Now, the TLD server looks up for the nameserver that is associated with the root name server.
10> ISP’ DNS resolver now reads the zone file from the domain’s name server and then shows up
which IP address goes with the domain.
11> ISP’s DNS resolver then responds with IP address and returns this to the browser which then
accesses the site.
This above representation will describe it better. The Linode here is a server.
Types of DNS –
1 > MX is Mail Exchanger record. This record sets a destination for mail delivery for a particular domain
or subdomain.
Usage –
Explanation-
A–
This is most normal form of DNS record. It points the domain or the sub domain to the IP address of that
server. A record can look like the following -
example.com A 12.34.56.78
hello.example.com A 12.34.56.78
Usage –
1> Set type=A
2> Example.com
We can point subdomains to other different IP addresses as well. I f we want to point our
subdomains to the same IP address, we can use (*) asterisk.
*.example.com
This will include all the subdomains associated with the domain example.com
NS –
This will help in identifying the DNS servers that are in the particular DNS zone.
Usually, an IT infrastructure contain systems that are interconnected with each other. There will be a
name server that will request the records for the IP addresses.