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


    AddThis Social Bookmark Button

    In The News:


    Kentucky's Gambling Domain Name Grab Sets A Terrible Precedent
    Techdirt - Oct 10, 2008
    Last month, we wrote about a bizarre lawsuit in Kentucky, where a judge gave the government the ability to seize the domain names of numerous online ...

    Domain extension registration 'complicated'
    ihotdesk - IT News, UK - Oct 10, 2008
    A spokesperson for the Internet Corporation for Assigned Names and Numbers said applying for a domain name is not as simple as going to a local registrar, ...

    Gambling911.com

    Poker sites fight to get domain names back from Kentucky
    ZDNet - Oct 8, 2008
    Kentucky circuit court judge Thomas Wingate granted the request, ordering domain registrars to do just that. Wingate found that Kentucky’s anti-gambling ...
    Kentucky Online Gambling Domain Seizure Case: Predicted Outcome Gambling911.com
    WASHINGTON POST LOOKS AT KENTUCKY ACTION Online-Casinos.com
    Kentucky judge mulls online gambling case PokerListings.com
    PocketFives.com - PocketFives (press release)all 29 news articles

    TRAFFIC Down Under Domain Charity Auction Supports ICA
    MarketWatch - Oct 10, 2008
    Fabulous.com and TRAFFIC, joint organizers of the TRAFFIC Down Under domain name conference, will hold a charity auction of ten premium domain names with ...

    US gov't proposes digital signing of DNS root zone file
    NetworkWorld.com, MA - Oct 10, 2008
    Under the idea, records in the DNS (Domain Name System) root zone would be cryptographically signed using DNSSEC (Domain Name and Addressing System Security ...
    Feds Take Step Towards Fixing Huge DNS Security Hole Wired News
    all 12 news articles

    Cyber squatters warning
    Huddersfield Examiner, UK - 6 hours ago
    Mr Pow, of computer support company Ulysses IT, said: “Many of the potential website domain names for the new company – such as LloydsHalifax.co.uk – were ...

    .pro Domain Name Registrations Show Impressive Growth
    TMCnet - Oct 8, 2008
    This huge rise is indicative of untapped demand for .pro domain names for professional service firms who want to develop a brand name online. ...
    EnCirca Announces Surge in .Pro Domain Registrations SYS-CON Media
    all 8 news articles

    INTERNET LAW - Trademark Infringements Of Magazine Domain Names
    IBLS INTERNET LAW (subscription), CA - Oct 8, 2008
    In these cases, the complainants alleged that the infringing parties had no right to register and use domain names that were either identical or confusingly ...

    360 Investments Ltd Announces Domain Names Sale
    WebHosting.Info, CA - Oct 8, 2008
    UK based 360 Investments Ltd, today announced the sale of its Domain Name Portfolio Assets covering a variety of sectors including business, career, ...

    Court to Rule on Kentucky Domain Name Seizures Next Week
    Gaming Intelligence Group (subscription), UK - Oct 8, 2008
    The ongoing case in Kentucky regarding the seizure of online gaming domain names again failed to reach a conclusion yesterday, with Judge Wingate postponing ...
    Online Operators Made To Wait For Kentucky Domain Case Ruling GamblingCompliance.com
    all 2 news articles
    domain names - Google News
  • Your Ad Here

    Games at Buy.com

    Holiday Home Store at Buy.com

    Making Money with Expired Domains

    There are billions of websites and thousands more popping up each day and they all require a name. As competition on the Internet intensifies, more and more... Read More

    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. Of course, you can opt for a... Read More

    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... Read More

    The Growth of ru-Domains

    The registry of ru-domains reports, that the number of domain names registered in Russia's national domain, the ru-domains, has increased 19.82% in the first half of 2004... Read More

    Understanding The Value of Expired Domains

    I would like to explain a few things related to expired domains in a definition format, which should make it easy to understand.What are expired domains? Expired... Read More

    Information on Domain Names

    It's been two years since John started his online business. He is very much satisfied with his current web host whose services he acquired one year ago.... Read More

    Virtual Airport

    Aero Registrar Secura GmbH proposes to the IT departments of airports to sell aero-domains to companies at the airport. Airports can build a portal of the airport... Read More

    How To Boost Affiliate Profits Using Secret Domain Tricks

    Want to increase your affiliate link click-through rates and profits?Then you'll need to learn how to master your domain.One of my favorite episodes of Seinfeld was the... Read More

    How to Register an Expiring Domain

    Understanding the process and options involved with registering an expiring domain can be a confusing task. How, Where, When?This article will explain the basic steps to researching... Read More

    8 Million de-Domains

    DENIC, the registry of the German Top Level Domain (TLD) has announced, that it has received the eight millionth application for the registration of a de-domain. The... Read More

    Whats in a Domain Name?

    You've decided to start up your own website. You've weighed all of your options, and have come to the conclusion that you want to purchase web space... Read More

    5 Tips For the Perfect Domain Name

    What is a domain name? A domain name is the location of your website on the Internet. Your domain name will be what you become known by... Read More

    Domain Name Registration Explained

    Registering a domain name is a pretty straight forward process. In fact the hardest part of registering a domain name is coming up with a name that... Read More

    Domain Name - How To Pick One

    Picking a domain name should be easy, right? Why, I'll just use my business name. Not so fast, Sparky. A good bit of thought should be given... Read More

    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... Read More

    A Little Secret About Public Domain Treasures

    I bet this little secret is going to get YOU excited... just like it did me. I just discovered public domain treasures and it's a perfect business... Read More

    Protecting Your Domain Names

    Domain Dispute is no longer news unless a Madonna or Julia Roberts type of celebrity gets involved. However, greater now than ever is the risk for domain... Read More

    Its Raining ccTLDs

    By now you've probably noticed the onslaught of unfamiliar domain name extensions popping up here and there. Like most domain name professionals, you've probably sat at your... Read More

    Domain Names 101 - A Dummies Guide to Choosing Great Domain Names

    When it comes to choosing your domain name, do not allow yourself to get stressed out or worry over choosing the perfect domain name that will make... Read More

    What Questions Should You Ask Yourself When You Select Your Domain Name for Your Home Business?

    So you want to be an Internet superstar, work from home and earn six figures cool we are working on doing just that. In previous articles we... Read More

    .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... Read More

    How to Conduct a Domain Name Search and Why Your Domain Name Matters for Long Term Branding

    Creating a website is not just about designing your pages and including all the important information, it is also about creating a domain name that relates to... Read More

    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... Read More

    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... Read More

    ICANN Registrar: jp-Domains for Anybody

    Cologne, October 10 2004. ICANN Registrar Secura announces today, that the company is now accepting the registration of jp-domains from companies and individuals outside of Japan.The jp-domains... Read More

    A Very Simple 3 Step Process To Find That Perfect Domain Name Using Some Free Online Tools

    So you finally decided you want your very own home on the World Wide Web. Many people use free services like Geocities or AngelFire for their first... Read More