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

    In The News:

    table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.azcentral.com/community/westvalley/articles/2008/12/02/20081202gl-websense1203.htmlcid=0ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNGfV_Blihujkkz_xfxq42S2iz5ZGgLearn the ins and outs of buying a bdomain name/b/abrfont size=-1font color=#6f6f6fArizona Republic,nbsp;AZfont size=-1 class=ima href=/a/fontnbsp;-/font nobr8 hours ago/nobr/fontbrfont size=-12, 2008 09:42 AM Answer: Your bdomain name/b is the most important part of your Web site outside your welcome page. It defines how customers find you on the b.../b/font/div/font/td/tr/table
    table border=0 width= valign=top cellpadding=2 cellspacing=7trtd width=80 align=center valign=topfont style=font-size:85%;font-family:arial,sans-serifa href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://bits.blogs.nytimes.com/2008/12/02/tel-them-where-to-find-you/%3Fhpcid=1276866741ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNE5RSvPDcD3cYfUck_Zf0u-mqXTGgimg src=http://news.google.com/news?imgefp=y3SH3VWuLawJimgurl=graphics8.nytimes.com/images/2008/12/02/technology/tel.190.jpg width=41 height=80 alt= border=1brfont size=-2New York Times/font/a/font/tdtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://bits.blogs.nytimes.com/2008/12/02/tel-them-where-to-find-you/%3Fhpcid=1276866741ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNE5RSvPDcD3cYfUck_Zf0u-mqXTGg.Tel Them Where to Find You/abrfont size=-1font color=#6f6f6fNew York Times,nbsp;United Statesfont size=-1 class=ima href=/a/fontnbsp;-/font nobr4 hours ago/nobr/fontbrfont size=-1A “land rush” period, in which anyone can buy bdomain names/b for around $150 a year, begins Feb. 3. After March 24, bdomain names/b will be available for around b.../b/fontbrfont size=-1a href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.prweb.com/releases/2008/12/prweb1691254.htmcid=1276866741ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNFkmwNq8fdKU6u0RE54cwmFcrg_QgNetfirms Announces Availability of Innovative .TEL bDomain Names/b/a font size=-1 color=#6f6f6fnobrPR Web (press release)/nobr/font/fontbrfont class=p size=-1a class=p href=http://news.google.com/news?sourceid=navclientie=ISO-8859-1rls=GGLG,GGLG:2005-22,GGLG:enncl=1276866741hl=ennobrall 8 news articles/nobr/a/font/div/font/td/tr/table
    table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.punchng.com/Articl.aspx%3Ftheartic%3DArt200812030541234cid=0ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNGOEnVMItjmooYFErwGPBHOBVJ6UQInternet body to auction special bdomain names/b/abrfont size=-1font color=#6f6f6fThe Punch,nbsp;Nigeriafont size=-1 class=ima href=/a/fontnbsp;-/font nobr2 hours ago/nobr/fontbrfont size=-1By Jonah Iboma The Nigeria Internet Registration Association, the body in charge of the administration of the country’s top-level bdomain name/b, .ng, b.../b/font/div/font/td/tr/table
    table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.prweb.com/releases/2008/12/prweb1693404.htmcid=1276876572ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNG0Z02yqDg3HVM_ga3l6AGgqoZMBQSnapNames.com Announces Auction Services for Deleting .mobi bDomain/b b.../b/abrfont size=-1font color=#6f6f6fPR Web (press release),nbsp;WAfont size=-1 class=ima href=/a/fontnbsp;-/font nobr11 hours ago/nobr/fontbrfont size=-1Founded in 2000, SnapNames operates the largest auction of expired and deleting bdomain names/b. Partnering with the world#39;s largest and best-known registrars b.../b/font/div/font/td/tr/table
    table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://7thspace.com/headlines/299063/domain_name_community_dnf24_launches_free_expired_domain_name_tool.htmlcid=0ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNG-CEqeGK3qYrSJSXYrG5iL9et3FAbDomain Name/b Community DNF24 Launches Free Expired bDomain Name/b Tool/abrfont size=-1font color=#6f6f6f7thSpace Interactive (press release),nbsp;NYfont size=-1 class=ima href=/a/fontnbsp;-/font nobr11 hours ago/nobr/fontbrfont size=-1Amsterdam and New York, December 2nd 2008 - Today, bdomain name/b community DNF24.COM has announced the launch of its available expired bdomain name/b service for b.../b/font/div/font/td/tr/table
    table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://7thspace.com/headlines/298955/early_christmas_domain_name_community_dnf24_gives_away_free_domain_names.htmlcid=1276573964ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNEkGzT9tRcwr7MZtPvkpJ64biJfcgEarly Christmas: bDomain Name/b Community DNF24 Gives Away Free b.../b/abrfont size=-1font color=#6f6f6f7thSpace Interactive (press release),nbsp;NYfont size=-1 class=ima href=/a/fontnbsp;-/font nobrDec 1, 2008/nobr/fontbrfont size=-1Amsterdam amp; New York - December 1st 2008 - (7thSpace.com) - Today, bdomain name/b community DNF24.COM has launched a contest, where community members can b.../b/font/div/font/td/tr/table
    table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://mashable.com/2008/12/01/twitter-trivia/cid=0ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNEhzu1y6W73Ona1LE4fmGiMkz6k0QGenius Marketing: Answer Trivia on Twitter, Win Free bDomain Names/b/abrfont size=-1font color=#6f6f6fMashable,nbsp;CAfont size=-1 class=ima href=/a/fontnbsp;-/font nobrDec 1, 2008/nobr/fontbrfont size=-1bDomain/b registrar NameCheap is executing one of the latter, running a holiday trivia contest where their followers are awarded free bdomain/b registrations for b.../b/font/div/font/td/tr/table
    table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.mondaq.com/article.asp%3Farticleid%3D70418cid=0ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNHyxZfa4_KH33MuSr-SWAR7F8JTTgAustralia: Watch This (Expanding Internet bDomain Name/b) Space: An b.../b/abrfont size=-1font color=#6f6f6fMondaq News Alerts (registration),nbsp;UKfont size=-1 class=ima href=/a/fontnbsp;-/font nobr16 hours ago/nobr/fontbrfont size=-1The following FocusPaper provides a broad overview of ICANN#39;s newly proposed procedure for the introduction of additional top-level bdomain names/b to the b.../b/font/div/font/td/tr/table
    table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.prweb.com/releases/2008/12/prweb1686484.htmcid=1276806462ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNG7WileJQZAxAGBYiixncViLz9YkgJohn Motson#39;s Free Book quot;Domaining Manifestoquot; Reveals Secrets Of b.../b/abrfont size=-1font color=#6f6f6fPR Web (press release),nbsp;WAfont size=-1 class=ima href=/a/fontnbsp;-/font nobr17 hours ago/nobr/fontbrfont size=-1With the dire state of today#39;s global financial market, bdomain names/b are turning out to be a very steady and reliable investment alternative as bdomain names/b b.../b/font/div/font/td/tr/table
    table border=0 width= valign=top cellpadding=2 cellspacing=7trtd valign=top class=jfont style=font-size:85%;font-family:arial,sans-serifbrdiv style=padding-top:0.8em;img alt= height=1 width=1/divdiv class=lha href=http://www.citywebshopper.net/articles/includes/redirect.php?url=http://www.prweb.com/releases/ethoca/tucows/prweb1691974.htmcid=1276876425ei=7uQ1SZr-HKCawAGx7rG2DQusg=AFQjCNFLI_QJNnmVsNgGtF3V130nUA8xfwTucows Joins Ethoca-Powered Global Fraud-Fighting Community/abrfont size=-1font color=#6f6f6fPR Web (press release),nbsp;WAfont size=-1 class=ima href=/a/fontnbsp;-/font nobr11 hours ago/nobr/fontbrfont size=-1Hover is the easiest way for individuals and small businesses to manage their bdomain names/b and email addresses. -- Tucows also owns a portfolio of tens of b.../b/font/div/font/td/tr/table
    domain names - Google News
  • Earn Money With Parked Domain Names

    Do you have domain names that you are not currently... Read More

    Choosing A Domain Name

    --About Domain Names--Choosing a domain name for your web site... Read More

    Before You Register a Domain Name for Your New Online Business...

    Recently I made a mistake that may cost a great... Read More

    42 Killer Domain Secrets Exposed!

    The Basic StuffEvery website needs a domain name. Example "WebBootCamp.com"... Read More

    Sub Domains - An Inexpensive Solution to Grow Traffic

    Read this brief article that reflects what we learned about... Read More

    Got a Small Business? Choose the Right Domain Name

    Choosing a domain name can be daunting. Research the subject... Read More

    Is Your Domain Name On Someones Wanted List?

    A good domain name is, and will always be, essential... Read More

    Domain Name Strategies Maximize Profits

    Whether you want to come up with your own original... Read More

    How to Choose the Right Domain Name

    What's in a name? Everything! A domain name is the... Read More

    The net-Domain: Backbone of the Web

    We do not always realize that figures are just quantity... Read More

    Think All the Good Domain Names are Taken?

    Have you heard of the other tlds (top leve domains)... Read More

    Information on Domain Names

    It's been two years since John started his online business.... Read More

    What is a Domain Name and Where to Register?

    A domain name is an alias for an IP address.... Read More

    Domain Names and Longevity

    It begins as an idea -- a company name, a... Read More

    Choosing a Domain Name - One of the First Stops for Your New Website

    So, what is a domain name, or simply a domain?... Read More

    Protecting Your Domain Names

    Domain Dispute is no longer news unless a Madonna or... Read More

    Get Your Own Domain Name Or Die Online

    Would you buy from someone with an "@yahoo.com" e-mail address?... Read More

    Understand the Domain Name System

    Ever wonder why DNS systems came into existence? Efficiency. Every... Read More

    Warning: Your Domain Name Could Infringe On Trademark Rights!

    If you have or are about to purchase a domain... Read More

    How To Choose The Best Domain Name

    In this article we are going to look at the... Read More

    Why El Cheapo Domains Will Cost You Money

    You want your own online business? Good because it's one... Read More

    What is Domain Name Backordering?

    Domain names are the hottest net-real-estate on the internet. It's... Read More

    All-time Record of Domain Registrations

    The number of registered domains has reached an all-time high... Read More

    A Guide to Sell Your Domain Name Quickly

    Everyday I read this question on different forums "how I... Read More

    Detagged Domains

    What is a DETAGGED domain name? We get asked this... Read More