Know How DNS Works

Domain name Servers (DNS) are an important but invisible part of the internet, and form one of the largest databases on it. Each machine on an internet is assigned a unique address, called an IP address, which is 32 bit number and is expressed as 4 octets. The method user to represent these IP addresses is known as dotted decimal Notation". A typical address looks like this: 199.249.150.4

It is very difficult to keep in mind the IP addresses of all the websites we visit daily, because it's not easy to remember strings of numbers. However, we do remember words. This is where domain names come into the picture. If you want to connect to a particular site, you need to know its IP address but do need to know its URL. The DNS gets the mappings of the IP addresses and the corresponding names.

Names and numbers

DNS converts the machine names (such as www.xyz.com) to IP addresses (such as 199.249.150.9). Basically, it translates from a name to an address and from an address to a name.

The mapping from the IP address to the machine name is called reverse mapping. When you type http://www.xyz.com into your browser, the browser first needs to get the IP address of www.xyz.com. The machine uses a directory service to look up IP addresses and this service is called DNS. When you type www.xyz.com your machines firsts contacts a DNS server, asking it to find the IP address for www.xyz.com. This DNS server might then contact other DNS servers on the internet. DNS is therefore is considered as the global network of servers. The great advantage of DNS is that no organization is responsible for updating it. It is what is known as distributed database.

The three letter codes

A DNS server is just a computer that's running the DNS software. The most popular DNS software is BIND (Berkeley Internet Name Domain) DNS is hierarchical, tree-structured system. The top is donated by'.'. And is known as the root of the system. Below the root there are seven immediate sub domain nodes and these are 'com', 'org', 'gov', 'mil', 'net', 'edu', 'Int', etc.

DNS consists of two components

  • Nameserver

  • Resolver

    Nameserver:

    This performs the task of looking up the names. Usually, there is one nameserver for a cluster of machines. If the nameserver does not contain the requested information, it will contact another nameserver. But it is not required for every server to know how to contact every other server. Every nameserver will know how to contact the root nameserver, and this in turn will know the location of every authoritative nameserver for all the second level domains.

    Resolver:

    This runs on a client machine to initiate DNS lookups. It contains a list of nameservers to use. As we have read, the function of each of these nameservers is to resolve name queries. There are three types of nameservers-primary nameserver, secondary nameserver, and caching nameserver. The secondary nameservers are configured for backup purposes. Caching nameservers only resolve name queries but do not maintain any DNS database files. It is important to note here that any change to primary nameservers needs to be propagated to secondary nameservers. This is because primary nameservers own the database records. The changes are propagated via a 'zone transfer'.

    HOW 'CACHING"WORKS

    DNS uses principle of 'caching' for its operation. When a nameservers receives Information about a mapping, it caches this information .further queries for the same mapping will use this cached result, thereby reducing the search cost. The nameservers don't cache forever. The caching has a component called time to live (TTL) and the TTL determines how long a server will cache a piece of information. So when the nameservers caches receive an IP address, it receives the TTL with it. The nameserver caches the IP address for the period of time then discards it.

    When a process needs to determine an IP address given a DNS address, it calls upon the local host to resolve the address. This can be done in variety of ways:

    Table look up. On UNIX hosts, the table is /etc/hosts.

    The process communicates with a local nameservers. This is named on a UNIX system.

    By sending a massage to the remote system that is identified from the information in the file/etc/resolve.conf.

    When a nameserver receives a query for a domain that is does not serve, it may send back a referral to the client by specifying better nameservers. Typically operate in the recursive manner wherein any DNS server passes requests it cannot handle to higher level server and so on, until either the request can be handled or until the root of the DNS name space is reached.

    The nameservers contain pointers to other nameserver with the help of which it is possible to traverse the entire domain naming hierarchy. A host with the initial nameserver addresses has to be configured. After this, it is able to use DNS protocols to locate the nameserver responsible for any part or the DNS naming hierarchy.

    Thus when a nameserver receives a request, it can do one of the following:

    It can answer the request with an IP address. This method is called iterative. In this, the client simply asks the server to resolve a domain name. The server accesses its database, finds its IP address and sends that back. If the server does not find the address, it sends back an error ;DNS not found'). Contact another nameserver and try to find the IP address for the requested name. Send back a referral to the client specifying the IP address of better nameservers.

    A popular user interface, called 'nslookup'is available on the UNIX system. With this, you can perform any DNS function. This program also displays the result to the user. Using is nslookup, you can obtain a listing of all the hosts in a zone. In order to do this, you first need to identify the nameserver for the zone.

    The threats that are associated with the DNS are due to the lack of integrity and authenticity checking of the data held within the DNS. Also, other protocols can use host names as an access control mechanism. The internet engineering task force (IETF) has come up with DNS security (DNSSEC) extensions to DNS protocol. The main objective to DNSSEC is to provide authentication and integrity to the DNS. These are provided through the use of cryptographic'

    About The Author

    Pawan Bangar,
    Technical Director,
    Birbals, Ebirbals, SeoBirbals, Hbirbals
    India.

    Visit us at: www.birbals.com, www.ebirbals.com, www.hbirbals.com, www.seobirbals.com

    pawan@ebirbals.com

  • More Resources

    Internet and Businesses Online:Domain Names Articles from EzineArticles.com
    09/03/2019 09:20 AM
    Your Cheat Sheet to Choose a Domain Name for Your Website
    We take care of ample of things while developing a new website but seldom do we care about the domain name disciplines. Domain names often act as a juggernaut when it comes to creating an influence over click-through-rate, type-in traffic, branding, developing trust, mouth publicity, offline advertising and grabbing more attention in the SERP's. So from every aspect, we need to make sure that the domain name is sending the right signals in order to get the most value.
    07/23/2018 01:00 PM
    How to Perfectly Value Your Domain Name
    If you want to sell your domain name, it is very important for you to know its real value. This is because you need to avoid underselling it, since there is nothing like over-selling in the domaining world. Even though there are many appraisal tools online, the following factors should be considered in getting the right value for your name.
    07/16/2018 10:12 PM
    How To Make Money Trading Domains
    Domain trading is the buying and selling of domain names and it is a business that has been on for many years. It promises a high yield on investment but can be very risky. You can turn $25 into $450 or more within a short time and you may buy a domain name without ever selling. It is an interesting terrain to navigate. If you want make money with this business, you need to get as much information as possible so that you will be able to succeed.
    06/04/2018 09:32 AM
    Three Ways a Cheap Domain Registration Can Provide Profitability for Businesses
    As a business investor, you should be able to stay tough and relevant in any competitive terrain, as long as you are able to adopt cheap strategies that can help you stand out amongst your competitors. Therefore, you need to work closely with an expert that can walk you through ways you can maintain steady profit when you register your domain names.
    05/23/2018 09:20 AM
    The Pros of Having Multiple Domain Names
    You shouldn't neglect the fact that domain names are important to any form of business that needs to grow on the digital space. Failing to have multiple domain names may put the sustainability of your brand in danger.
    05/16/2018 08:04 AM
    Becoming a Relevant Force for Your Visitors With Personalized Domain Names
    As a business owner who is aspiring to harness digital marketing, your level of success in the digital marketing industry is dependent on how you can handle SEO practices. How you are able to succeed with these practices is dependent on the kind of professionals you end up working with.
    05/07/2018 08:06 AM
    Essential Tips to Keep in Mind Before Buying a Domain From Web Developers
    Before you get a domain name, you have to put some things into consideration. Here's what you should have in mind: Stop thinking only ".com." See, there are many varieties of new domain names extensions which are available. These domains also offer more precision (i.e., myown.club pinpoints the subject more than http://myownclub.com).
    02/28/2018 02:21 PM
    How to Value a Domain Name OR How to Appraise a Domain Name
    The worth, price or value of a domain name can scope anywhere from couple of dollars to millions of dollars. The real challenge is how to evaluate the actual price of a specific domain name or how to calculate the website worth. There are unexpected and sudden news all the time about some companies are paying thousands of dollars for a domain name which is highly relevant to their business and company name.
    10/10/2017 09:08 AM
    Choosing The Right Domain Name
    Starting an online business can be very exciting. The thought of having your own website complete with products and services, and generating your first sale, can get you excited enough to research, surf and investigate ways and means to set up your own business. The first thing that then comes to your mind is a suitable name for your website. So, to begin with, you should have a domain name and have it registered. What Is a Domain Name?
    09/26/2017 03:09 PM
    Ways to Make Money With a Domain Name
    The digital economy in its short span of existence has overtaken many traditional businesses in terms of reach, wealth and influence. The digital economic model has revolutionized the way we live, communicate, transit from one point to another and even the way we project and plan about the future. If you take the Uber "Digital Economy" transport model for instance and compare it with the New York "Yellow Cabs" traditional transport model, your conclusion will only be left for your imagination to fathom. Same thing can also be said about Facebook, Google, Twitter, Wikipedia, as they have all drastically revolutionized the way we access information, learn new skills and understand the world around us.
    08/17/2017 03:46 PM
    Choosing an Effective Domain Name
    When you first start your business, one of the initial things that you will need to do is to choose a domain name for your business/website. One thing that you should keep in mind is that you will have to live with that domain name for a very long time so you better make it a good one.
    07/25/2017 07:57 AM
    Why Choosing a Domain Name Is Not As Hard As One Might Think
    In my case choosing the title of my first book was a much harder exercise than picking a domain name for my web site in 1997. As a writer who has learned to trust my instinct a lot more than other things the name 'italk4u.com' came instantly to mind.
    07/10/2017 07:55 AM
    How To Pick The Best NZ Domain Name For Your Blog
    First impressions matter-especially in the world of business. "Why?" you might ask. Let us begin by talking a bit about neuroscience.
    07/07/2017 08:15 AM
    Is Buying Multiple Domains Necessary?
    Whether to buy multiple domain names or not to buy is one of the most common questions that most people ask without really knowing how they work. You may end up spending money on, any domains and they may not benefit you in any way. It is important to note that there are many reasons that can warrant the buying of multiple domains.
    05/11/2017 09:07 AM
    What's Worrisome About Quirky Domain Names?
    Like in real life, you need an identification on the Internet, whether you run a blog, a personal website or an eCommerce store - otherwise, you'll never be found. You want a domain name that people can easily recall and mirrors what you offer on your website. If you fancy an odd name, thinking it's more appealing, be wary of the danger that comes with it.
    04/10/2017 09:08 AM
    How to Check If a Domain Is Banned by Google AdSense
    Google AdSense is probably the best program available in enabling internet bloggers and website owners to capitalise on their sites' popularity. The revenue thus generated can be lucrative and worthwhile, however, it is necessary to check your domain as sites that are banned from Google AdSense will not have this option. The 5 Web Tools That are Most Useful - There are various web app tools with which to check if a domain is banned by Google AdSense, and the top 5 are discussed here.
    03/31/2017 05:35 AM
    The Importance of Your Personal Branding and Domain Name
    People tend to patronize businesses with very good branding. In this era, if you haven't considered branding, your business seems non-existent.
    03/24/2017 08:29 AM
    Brandable Domain Names - How It Works
    When a new business is looking to make a splash online, they must get several things right. They need to ensure the products and/or services they are offering will help them stand out in the market.
    03/08/2017 07:53 AM
    Domain-Nation: The Power of a Domain Name
    How your webpage looks definitely matter. The fact is, first impressions last for a long time-and sometimes longer than you think-for rarely does a person bother to revisit a site which he finds dull and uninteresting the first time he has viewed it.
    02/22/2017 05:56 AM
    Choose the Right Domain Name or Be Doomed
    Choosing the right domain name is an important step in starting an online business. It's a foundation for your digital identity and marketing strategy. It is your first step into the online business world. Name wisely.
    02/08/2017 03:50 PM
    Understanding Domain Transfer
    Your domain name is your online identity as people refer to you by it.There are many reasons you may consider transferring your domain.
    01/26/2017 08:38 AM
    Top 7 Questions About Registering Domain Names
    When it comes to domain registration, there are some questions you need to ask to ensure a successful registration. Here are some basics to guide you in purchasing your domain name for business.
    01/16/2017 03:54 PM
    Key Elements To Consider When Setting Up Your Website's Domain Name
    For individuals and organizations venturing into e-commerce, web domain registration is the first step that should be prioritized. This is because a domain name is something through which people can easily identify your website and contact you. If you're in the process of buying and setting up a domain name for your business, below are some of the most important factors you have to consider.
    12/22/2016 08:04 AM
    Domain Registration Facts You Need to Keep in Mind
    Domain registration is an important aspect of business, helping people to start building their online presence. From choosing a domain name for your site to purchasing it at a domain registrar - it's fairly easy, if you know what to do. Read on for some insights to help you start on the right foot.
    10/27/2016 08:04 AM
    How Can A Regional Web Address, Such As A .ASIA Domain Name, Help Your Business?
    In a crowded online marketplace, there are many advantages of using regional TLD (top level domain) for your website, for example using a .ASIA domain name over a generic .COM or .NET address, for example.
    10/04/2016 09:30 AM
    Affordable Domain Names for Your Ecommerce Website
    An on-line presence is very essential for any kind of business: it is probably the most cost efficient type of advertising currently available. Numerous small businesses use the web to sell their services and products while many businesses do not actually see the web as a market. No matter what you'd like to do, inform your customers or sell products on-line, you need to know several Web site basics in order to attain success. Fundamentally there are two main types of web sites! informative and commercial. If you are only starting out, dependent on the nature of one's company, you will either plan an educational web site meant to attract and encourage customers to ask the services or you will develop a professional web site that will sell your products online.
    09/09/2016 08:22 AM
    What Is Your Domain Worth? The Top Domain Appraisal Sites
    All good things must come to an end, and this is also applicable to high-ranking websites. At times, there is simply no point maintaining them, simply because there is nothing left to explore. But just because a site is about to be shut down doesn't mean it should go to waste.
    09/05/2016 08:29 AM
    How to Get Your Domain Name Back After Forgetting to Renew It
    Once you decide on a domain name, the next step is to check if it has not been taken and eventually have it registered. When you register, there are two choices you can explore: A. You can either find a domain registrar B. Or a web hosting company with its own domain registry.
    09/02/2016 08:00 AM
    Coming Up With a Domain Name: What to Consider
    One of the challenges of creating a website name is making sure no else has taken it. However, you can take it a step further by making it unique.
    08/09/2016 08:28 AM
    Importance Of A Domain Name For Your Website
    A Domain Name is your web address that helps a customer to reach you over the internet. You should be very careful while selecting a right domain name for your business because it will put a good or bad impact on a customer's mind.
    06/03/2016 11:19 AM
    8 Rules for Choosing a Domain Name
    Choosing a domain name can be very easy or very difficult depending on your purpose. Follow these 8 simple rules to make the best decision.
    06/02/2016 09:07 AM
    How to Pick an SEO Friendly Domain Name
    How do you make the right choice when you decide to buy a domain name? A domain is a company's virtual identity and one of the basic parameters that need to be defined when creating a website. When choosing to, it is important to make the right choice in a SEO sense because this will definitely affect the overall website success.
    06/01/2016 02:13 PM
    Understanding DNS Better
    The Domain Name System is very much like the phone book to Internet, private networks, and is commonly referred to as DNS. The Domain Name System is associated with domain names, name servers, web servers, and hosts. This article is intended to give the average internet or network user a much better understanding of what DNS is and how it works without being too technical.
    04/12/2016 04:48 PM
    You May Not Comprehend This, But The Appropriate Domain Is Important To Your Success On The Web
    One of the greatest things you can do when starting an online business is to make certain you get the best domain name possible. Because there are a lot of individuals who are brand new to the world wide web, an example of a domain name is yahoo.com and that of course will bring you to Yahoo's website. When you decide to build a web page or have a website created for you it is imperative that you select the best domain name for what ever specific niche market you will be entering. Picking a effective domain name really can mean the actual difference between success and failure.
    03/29/2016 01:11 PM
    Domain Names Regulations
    A domain name is an identification string defined by the rules and procedures of the Domain Name System (DNS). It should be pointed out that a domain name is assigned for exclusive use under one legal or natural person. Specifically, a domain name represents an Internet Protocol resource, such as a website. Domain name can be described as a location where specific information and activities can be found.
    03/22/2016 11:17 AM
    How To Buy An Aged Domain
    There are lots of benefits to buying an aged domain, which is an ideal strategy if you are building a new website. The immediate benefit comes from the reputation which, may have been previously established, where the older is better.
    03/21/2016 01:35 PM
    Unscrupulous Practices To Watch Out For While Buying A Domain Name
    In this article, we are going to take a look at some of the unscrupulous practices related to domain name registering as well as a few precautions to help protect you from being victimized. Domain name front running This has been a suspicion of people for a long time. It basically occurs when people monitor the attempts of others to check out non-existent domain names and then buy them before the inquiring person can make a purchase.
    03/21/2016 09:30 AM
    How To Choose Business Domain Names
    As a business owner or website owner, you may have faced the task of choosing suitable business domain names. Choosing business names may be a lot less simple process than choosing business domain names for a number of different reasons.
    03/21/2016 09:29 AM
    Building Creative Domain Names
    It is now equally important to have creative domain names, as it is to include elements such as keywords and or regions. If you have enough potential where your business becomes big enough to be a brand, this is no longer a concern, but for most SMB, this is far from the case.
    03/21/2016 09:28 AM
    Coming Up With Creative Company Names
    It appears that coming up with creative company names may be the hardest things for potential entrepreneurs, and unfortunately, the seemingly simple task, can be a pre-cursor that can indicate the success of the business, as it shows the effective use or lack thereof of creativity, which is very often, an essential asset for continued success.Finding a name for your business should not be a laborious process, and in addition to being easy, it should also be fun.
    03/21/2016 09:28 AM
    Is It Important To Have Unique Domain Names?
    With a new website, or a blog, one of the factors that contributed to online success was the domain chosen to represent your online presence. A look at some of the biggest and heavily trafficked sites on the web, however, will easily indicate some meaningless names.
    03/11/2016 10:43 AM
    Here's How You Make Domain Name Transfer Less Painful
    Here are a few tips that will certainly make the process of a domain name transfer a lot easier for you: Firstly, avoid domain name transfers if you are near your date of renewal. Give yourself ample time before initiating these transfers just in case there is something which goes wrong. Two weeks is doable, a month is recommended.
    03/09/2016 07:47 AM
    Some Tips To Keep In Mind While Registering Your Domain Name
    Here are a few tips and considerations for you to keep in mind when it comes to domain name registration. Remember, once you settle on a domain name, it is going to be very expensive and difficult to change it.
    02/05/2016 04:36 PM
    Increasing the Value of Your Domain Name
    Every investor wants to get top dollar for their Domain Name yet oftentimes we just see a bunch of low ball offers, nothing substantial. We look at domain sales sites and see names similar to ours go for much more than the offers that we are seeing for our Domain Name. We ask ourselves, why? Why are other people getting higher amounts for the same type of name? Well, I will tell you why and give you some tips on how to maximize value for your asset.
    01/14/2016 07:34 AM
    Mythbuster: Will A New TLD Boost Search Engine Rankings? Not Really
    We all have been watching new domain name TLDs become more visible and more accepted around the world. This article deals with why it won't make a difference which domain name TLD you have registered for your website.
    12/23/2015 10:56 AM
    What's in a Domain Name?
    The right domain name is one of the most important aspects of your brand and your business. Know your target market and then you can get a domain name that will attract the kind of business you are looking for.
    12/14/2015 08:56 AM
    Why You Should Consider Registering Your Domain Name
    A domain name gives you online identity or an online brand and it is therefore a very vital part of your business. It works not only as what identifies you but as a marketing tool for the goods or services that you have to offer your customer. When it is easier for your business to be found by customers, then you increase conversion rates and when you register your domain, you ensure that no other business can use the same so it gets even easier for customers to always find the right company.
    11/16/2015 04:00 PM
    The New GTLDs
    It's the new dawn of the internet with 600+ extensions to now choose from and invest in whether you are a consumer or a corporate but what do people think of it? Well, at the moment the jury is still out but for every 'bang' of a new gTLD and some of them surprising like.guru there is a whimper for a.ceo and if you are a consumer or a corporate they are very different questions to pose.
    11/10/2015 12:04 PM
    [How To] Register an Awesome Domain Name - Don't Be a Cowboy-Pirate
    Learn how to pick an incredible domain name without leaving people scratching their heads. Define your brand. Get attention. Don't be a pirate-cowboy.
    11/02/2015 02:15 PM
    6 Steps That Guarantee Maximum Price When Selling Domain Names
    If you are considering selling your domain name, of course you want to get the best price possible. This article outlines strategies that guarantee just that. Since the mid 1980s, when domains first came into being, there has been an explosion of registered domains. This has resulted in the emergence of entrepreneurs buying and selling this cyberspace real estate--sometimes at substantial financial gain.

    More Domain Names Information:

    Related Articles

    10 Things to Ponder when Picking Your .com
    1. Proper names VS Common Names.
    Domain Parking Explained
    Domain names are being snapped up all the time so if you have thought of a cool domain name for a future project then it might be wise to register it now. There is a chance that if you leave it too late someone else may register it.
    Cheap and Easy Domain Name Registration
    Just like any business, your identity is very important. On the World Wide Web, your domain name is your identity.
    What is a Domain Name and Why Would I Want One?
    In this article we will cover the basics of what a domain name is, how they work and why you need to have at least one. I am going to try and avoid complicated computer terms and stick to explanations that should be easily understood by someone without a computer science degree.
    Does the Length of a Domain Registration Affect Your Search Engine Rank?
    Does the length of your website's domain name registration affect the search results at Google? This question has come up recently and a lot of website owners have been wondering about it, especially since it was mentioned in a patent awarded to Google in April. According to the patent, "Certain signals may be used to distinguish between illegitimate and legitimate domains.
    Domain Name Goldmines: Expired Traffic Investing In The 21st Century
    I get pretty frustrated when thinking back to the days of seven-figure domain name sales. However, I was only a little kid, but still, I spent hours on the computer playing Descent II with my friends.
    A Guide to Sell Your Domain Name Quickly
    Everyday I read this question on different forums "how I sell my domain quickly?" To me earning huge income from domain and selling it quickly are two different things, and you have to select one. Many newbie register a domain in the hope that next day someone will purchase it in two million dollars, which is obviously nonsense.
    Whats In A Name: Selecting the Right Business Name
    With all that's written about selecting a domain name, I thought I would address the ART of selecting a name for your business. It's by no means an easy task or one that should be taken lightly.
    Protect Your Domain Name or Risk Losing It
    Your domain name is an important part of your brand and identity. Losing it could be disastrous! Yet, month over month we see people lose their domain name, either because they ignore or forget to renew them, or do not keep their contact information - especially their email address - current and up to date.
    How to avoid copyright infringment in your domain name
    One of the most important aspects of choosing a domain name is that it should be non-infringing. This is not an easy task since most unique names have already been registered.
    How to Profit from Expired Domain Name Registration
    After the dot com crash, expired domain names and expired domain name traffic have been a source of potential income. It is important to inexpensively obtain the automated tools required to track the thousands of domain name registration and abandoned websites that are removed from the domain registry and become available for purchase.
    Investing in Great Domain Names when They Come for Sale
    Domain names are not just online identities anymore they are the most important asset an online company owns. There are businesses being spun out because the owner stumbled on a good domain name.
    .info Freedom Frenzy
    Whether you're someone that registers domain names on a regular basis, or you're a person looking to register one domain name for your website or business, then it's likely that you've encountered the free .info registrations taking place at several registrars.
    What's In A Domain Name?
    Choosing a domain name is a very important first step for anyone starting a business on the Internet. This name is the first impression that strangers are going to have about you and your business.
    Understand the Domain Name System
    Ever wonder why DNS systems came into existence? Efficiency. Every computer has a distinct IP address, and the Internet needed an elite method for obtaining these addresses and for managing the system as a whole.
    Domain Names Explained
    If you are totally new to the internet then you may not realize that the web address you type into your browser is known as a domain name. A domain name is an easy way for humans to understand and navigate the internet.
    Domain Names
    Domain names are relatively straightforward! Or at least that's the theory!!The domain name is also, but technically not quiet correct, known as the website address.Using an ISP's domain name can look amateurish in an e-mail addresses, it is much more so with websites, giving the impression of hanging on another's coat tails.
    Domain Names More Choices than You Think
    When you are choosing a domain name you will probably be looking for a .com or maybe a .
    How Do I Buy a Domain Name?
    Q: I'd like to buy a domain, but I discovered that it's already registered by a bulk domain buying company (just check negres.com).
    Customer Excellence Returns to Web Site Hosting!
    For those of you with Web sites, you probably know what a "host" is. It's a company that provides a location, or address, on the Internet where your Web site resides.