What Is DNS?
What Is DNS?
html
Hi Friends,
First of all thanks for visiting my blog. I added Search option for my blog, you can easily
search for a particular topic using Google Search. If you are facing any issues, or if you have any
questions please mail me at [email protected] Thanks.
machines never communicate with hostnames). To solve this situation DNS was implemented. It
basically contains a database of host records in a network. A host record contains Hostname :
IP address, see the image below for better under standing. Out Internet is purely depended on
DNS, when we access a particular website we will give its English name, when we press ENTER
immediately the machines starts finding the IP address of the website using the DNS server
configured on it. I will explain the name resolution process in details. And one more thing about
the DNS is, it is the only largest database on the internet which changes every second. If this
database goes down by a chance, we must remember all the ip addresses to access the internet.
hahaha it will not happen, why because we have so many backup solutions already implemented.
4. Every DNS server contains a roothint file associated with it, and the same will be used to
identify the responsible DNS server. Root hint file contains Master DNS servers information.
Here you go it looks like this. These are the master DNS servers for .com, .net, .edu, .org
domains etc.
5. So in your case, the domain is .com, DNS server
sends request to .com master DNS server (for ex:
assume it as 198.41.0.4), the .com master DNS server
contains name server records for all machines ending
with .com . That means it definitely contains DNS
server IP address for google.com. In the same way it contains all .com servers yahoo.com,
microsoft.com & so on.
6. It does not contain the IP address of google.com, it contains DNS server IP of google.com.
7. So then the request is forwarded to google.com DNS server, in that server you will have a host
record with the name www and its IP address. Finally you reached it. With the found IP address
the request comes back as a response in the same reverse way to the DNS server which is
configured in your machine, that DNS server tells the IP address of www.google.com to your
machine.
8. This process happens in milliseconds in the background. i.e by the time you will get Website
found waiting for reply message in the status bar of your internet explorer.
9. Oh my god!!!! Is that simple? Yes it is. The same process occurs in corporate networks also.
But the requests are handled by their local DNS servers only.
In my previous discussion about Understanding DNS, you learned most of the basic things
related to DNS. In this post i want to elaborate more about DNS. Let's start...
DNS Records
There are so many records associated with a DNS Server. Name resolution process does not
happen in a proper way with out these records.
As you know the DNS server main purpose is to resolve the host names to IP's and vice versa.
PTR Record : Pointer record, contains information about host name. It is helpful in
resolving IP address to hostname.
MX Record : It is a record helpful in identifying the mail server in a DNS domain (for
that organization)
NS Record : It is a record helpful in identifying the DNS server in a DNS domain (for
that organization)
SRV Record : This record is created when we install a service which is DNS dependent.
It is automatically generated and will be associated with a specific IP address. It is called
as Service record.
SOA Record : Start of Authority record, this is not a record associated with any IP
address. But it is associated with a number, which determines the update number. What
ever the update, when ever it is done this number will be incremented.
These are the records associated with each and every server in this world. A fact is that " DNS is
the biggest database in the world and that is the only one which gets updated every second
" And this database is not located at a single place, it is spread across the world in different
places like, different companies, different ISP's, different homes etc. And the name resolution
process is explained in my previous post Understanding DNS. That is the reason why, a DNS
request goes to different location to get the correct answer.
In my next article related to DNS, i will discuss about HOW TO TROUBLESHOOT DNS
PROBLEMS, KEEP VISITING OR SUBSRCIBE NOW TO GET THE LATEST POST
UPDATES.