Monday, April 15, 2013

How Domain Name System (DNS) Works



In the world of Internet and the area of computer networks, you will often come across the term Domain Name System or Domain Name Service which is simply referred to as DNS. The working of DNS forms one of the basic concepts of computer networks whose understanding is very much essential especially if you are planning to get into the field of ethical hacking or network security.
In this post, I will try to explain how Domain Name System works in a very simple and easy to follow manner so that even the readers who do not have any prior knowledge of computer networks should be able to understand the concept.

What is a Domain Name System?
A “Domain Name System” or “Domain Name Service” is a computer network protocol whose job is to map a user friendly domain name such as “arindamcctvaccesscontrol.blogspot.com” to its corresponding IP address like “173.245.61.120″.


Every computer on the Internet, be it a web server, home computer or any other network device has a unique IP address allotted to it. This IP address is used to establish connections between the server and the client in order to initiate the transfer of data. Whether you are trying to access a website or sending an email, the DNS plays a very important role here.
For example, when you type “www.google.com” on your browser’s address bar, your computer will make use of the DNS server to fetch the IP address of Google’s server that is “74.125.236.37″. After obtaining the IP address, your computer will then establish a connection with the server only after which you see the Google’s home page loading on your browser. The whole process is called DNS Resolution.
With millions of websites on the Internet, it is impossible for people to remember the IP address of every website in order to access it. Therefore, the concept of domain name was introduced so that every website can be identified by its unique name which makes it easy for people to remember. However, the IP address is still used as the base for internal communication by network devices. This is where the DNS comes in to action that works by resolving the user friendly domain name to its corresponding machine friendly IP address.
In simple words, domain names are for humans while IP addresses are for network devices. The “Domain Name System” is a protocol to establish a link between the two. Hence, it is not a surprise that you can even load a website by directly typing its IP address instead of the domain name in the browser’s address bar (give it a try)!

Types of DNS Servers and their Role:
The Domain Name System (DNS) is a distributed database that resides on multiple computers on the Internet in a hierarchical manner. They include the following types:

Root Name Servers:
The root servers represent the top level of the DNS hierarchy. These are the DNS servers that contain the complete database of domain names and their corresponding IP addresses. Currently, there are 13 root servers distributed globally which are named using the letters A,B,C and so on up to M.

Local Name Servers:
Local servers represent the most lower level DNS servers that are owned and maintained by many business organizations and Internet Service providers (ISPs). These local servers are able to resolve frequently used domain names into their corresponding IP addresses by caching the recent information. This cache is updated and refreshed on a regular basis.

How DNS Server Works?
Whenever you type a URL such as “http://www.google.com” on your browser’s address bar, your computer will send a request to the local name server to resolve the domain name into its corresponding IP address. This request is often referred to as a DNS query. The local name server will receive the query to find out whether it contains the matching name and IP address in its database. If found, the corresponding IP address (response) is returned. If not, the query is automatically passed on to another server that is in the next higher level of DNS hierarchy. This process continues until the query reaches the server that contains the matching name and IP address. The IP address (response) then flows back the chain in the reverse order to your computer.
In rare cases where none of the lower level DNS servers contain the record for a given domain name, the DNS query eventually reaches one of the root name server to obtain the response.

FAQs about Domain Name System:

Here is a list of some of the FAQs about DNS:

How does a “root name server” obtain the information about new domains?
Whenever a new domain name is created or an existing one is updated, it is the responsibility of the domain registrar to publish the details and register it with the root name server. Only after this, the information can move down the DNS hierarchy and get updated on the lower level DNS servers.

What is DNS propagation?
Whenever a new domain name is registered or an existing one is updated, the information about the domain must get updated on all the major DNS servers so that the domain can be reached from all parts of the globe. This is called DNS propagation and the whole process can take anywhere from 24 to 72 hours to get completed.

How often the DNS servers are updated to refresh the cache?
There is no specific rule that defines the rate at which DNS servers should be updated. It usually depends on the organization such as the ISP that maintains the server. Most DNS servers are updated on an hourly basis while some may update their databases on a daily basis.

I hope you have now understood the working of DNS in a very convincing manner. Pass your comments and share your opinion.


10 comments:

Anonymous said...

great post..!!! i was not having any idea of DNS..
but after reading ur post.!!
i now have a good idea…
great work keep it up man….!!

shubham agarwal

Anonymous said...

Dear Arindam,
i have been regularly visiting your site to learn and understand the complex knowledge of computers and networking which you explain in a simple way that a non technical person also understands and appreciates.

I sincerely thank u for your website.
Regards
JK Gupta

Anonymous said...

What am I Doing When I Change my DNS Settings?

Whether you are configuring a standalone computer (desktop or laptop), a network router, or an internal DNS server, when you set the IP addresses to point to OpenDNS you are instructing the Internet browsers, email systems and other Web applications to use OpenDNS servers to find your intended Internet destination.

Changing your current DNS settings to the OpenDNS servers is a safe, reversible, and beneficial configuration adjustment that will not harm your computer or your network. There is no software being installed and all configurations for security, Web content filtering and personal preferences are made online in your OpenDNS account, not on your computer or network hardware.

Put simply: when you change your DNS preferences to OpenDNS, you are improving the capability of your computer and your network to navigate the Internet, send email and perform other Web functions.

Anonymous said...

I'm not sure if this is the right place to ask this question but here goes:

I was using OpenDNS and in my router setup I selected the "Use these DNS servers" option and entered the Open DNS servers. Everything worked fine. Then for some reason I was losing the connection. After much troubleshooting I determined it wasn't the modem but thought maybe it was the router. I received a replacement router and set it up choosing the DNS option Get automatically from ISP. Everything worked fine except no Parental Controls.

When I select "Use These DNS Servers" and input the server addresses I lose my connection intermittently and troubleshooting the connection gives a result of The DNS Server is not responding.

If anyone knows how to troubleshoot this please help, but please provide step-by-step as I'm not that familiar with routers and networks. Thanks in advance.

Netgear WNR2000v3 (firmware 1.1.2.6)
Windows 7 Home 64-bit

michael_scott

Anonymous said...

How to Fix DNS Error - Server Cannot be Found

The first step is to refresh the page, which failed to load. If the page reloads, then this was just a momentary lapse in service, which happens even to the best Internet service provider. If the problem is not resolved, you will need to follow the following steps.

Check the page address you have typed into the address bar. There is a chance, that you may have misspelled the address. In most cases, an error in the URL address gives rise to this error message.
Try to refresh the page, you will now be able to view the web page, you are looking for.
If the above mentioned step, is not able to solve the problem, you will have to go to connection settings. You will have to ensure, that the settings, match with those of the Internet service provider or that of the local area network.
To do this you will have to click on the tools menu on the tool-bar, then click on Internet options. There you will come across the Connections tab, under which you will notice Settings.
Now you can try to refresh the page and check, if you are able go to the web page you have been looking for.
If this option does not work either, then click on the link 'Detect Network Settings' on the Internet Explorer page, which accompanies the error message to let Windows try to find an optimum connection to the Internet.
Now again refresh the page.
You can download DNS server error software off the Internet, if all the above options do not work.
These software are free on some of the websites, and they would be able to identify the problem. A PS3 DNS error problem can also be corrected by downloading this software.


- breatly lee

Anonymous said...

DNS propagation is the time delay between the time you make DNS changes on your authoritative DNS servers, usually at your hosting provider, and the time it takes for these changes to be seen by your end users and customers. The time it takes to propagate is going to be based on your current time to live (TTL) settings for the resource record your changing. These TTL values must expire from the recursive DNS servers around the Internet. Meaning the recursive DNS servers at ISP around the world. Once the TTL value reaches zero the recursive DNS server will then need to ask the authoritative DNS server for the new answer. The higher the TTL value the longer it takes changes to propagate because it will take longer for the cached value to expire. This tools will query several recursive DNS servers at random ISP's around the world to report on what IP address they are currently returning to their end users DNS queries for your domain. This will help you gauge if the changes you have made are being propagated in a timely manner.

- James Richardson

Anonymous said...

"It’s what I use to persuade people that I’m professional
and that my business is professional."

Chris McCarthy
Managing Director
Apex Security Systems

nike said...

Good content anpr solutions in dubai

No Name said...

Hey Guys !

USA Fresh & Verified SSN Leads with DL Number AVAILABLE with 99.9% connectivity
All Leads have genuine & valid information

**HEADERS IN LEADS**
First Name | Last Name | SSN | Dob | DL Number | Address | City | State | Zip | Phone Number | Account Number | Bank Name | Employee Details | IP Address

*Price for SSN lead $2
*You can ask for sample before any deal
*If anyone buy in bulk, we can negotiate
*Sampling is just for serious buyers

==>ACTIVE, FRESH CC & CVV FULLZ AVAILABLE<==
->$5 PER EACH

->Hope for the long term deal
->Interested buyers will be welcome

**Contact 24/7**
Whatsapp > +923172721122
Email > leads.sellers1212@gmail.com
Telegram > @leadsupplier
ICQ > 752822040

Glenn Hannan said...

Congratulation for the great post. Those who come to read your Information will find lots of helpful and informative tips. Page Size Checker tool