Webmaster Papers








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

    RELATED ARTICLES


    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.
    How to Choose the Right Domain Name for Your Company
    As the editor of DomainNameWire.com, I'm frequently e-mailed by people asking for domain name advice. Specifically, what should they look for when registering a domain name for their company? This may be basic for some of you, but I hope some of my readers gain value from this.
    1-800-Get-Rich Can Toll Free 800 Number Domains Pay Off?
    The toll free number 1-800-Get-Rich belongs to the Resorts Casino Hotel in Atlantic City. Perfect vanity number for a casino, right? Well apparently not. Their website shows the actual numbers, 1-800-438-7424 for the marketing department of Resorts Atlantic City. Those NUMBERS are nowhere near as memorable as is the mnemonic device of letters representing those numbers on the telephone keypad. It makes you wonder, did the casino have bad luck (no pun intended) or receive bad publicity for their 800-Get-Rich phone number?
    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.
    Get Your Own Domain Name Or Die Online
    Would you buy from someone with an "@yahoo.com" e-mail address? I wouldn't. And the clients I've had the most trouble with use yahoo addresses or other free addresses. I understand that you don't want your regular e-mail address in ads that your run on free ad sites to prevent spam, but lets use some common sense here.
    The Value of a Good Domain Name
    Domain names to the internet are the as necessary as wheels on a car. All websites need a domain name; it is how your website is found on the internet by your potential customers. It is your unique identifier and two organizations can not have the same domain name. Your domain name is not really purchased or bought; it is actually leased for a year to 10 years.
    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 subdomain name that comes with many free web hosting like http://yourdomain.netfirms.com. But if you are serious about being successful on the Internet, you have to get your own domain name, like http://www.yourdomain.com. Top 10 reasons to have your own domain name Please note that all domain names listed in italic are ficticious: It is cheap and easy to get your own domain name (less than $15/year in most cases) You own the name (as long as you pay the annual fee) You are not dependent on one web hosting company to let you use a subdomain, or worse, a subdirectory Your web site promotion effort does not go to waste if you change your web hosting company (because the domain name remains the same regardless of what host you use) The domain name can be optimized to your business, like www.best-used-cars.com Your web site is more professional The domain name is easier to remember. For instance, www.best-used-cars.com rather than www.geocities.com/web/public/business/auto/best-used-cars/ It is much easier to sell a web site with its own domain name A good domain name can be an asset It is cheap and easy to get your own domain name (this one is worth repeating) How to register for a domain name Please note that all domain names listed in italic are ficticious: Think of appropriate name for that suit the theme of your web site. For instance, an online dating service may find domain name like www.loveconnection.com, more desirable than say www.best-used-cars.com Search for domain name availability. Every domain name registrar will provide you with a search tool; although some search tools are better than other. You will have to do a lot of searches because a lot of domain name that you wish to have is probably already owned by someone else (very common). As you come across available domain names that you like, jot them down. Keep searching until you have about 3-5 different domain names to choose from. Choose a domain name and register it at a domain name ICANN Accredited registrar. Other factors to consider Initially, you will want the .com version of your domain name. If your internet business takes off, you may want to consider registering other first-level domains (i.e., .net) of your domain name and perhaps even similar domain names to prevent mistaken identity Use domain name registrar that will register the domain under your name under all contacts information (perhaps with the exception of technical contact). It should be clear that you own the domain name. Use domain name registrar that provide good online account support. Use automatic domain name renewal if you are planning to own the domain name long-term
    8 Tips for Choosing a Domain Name
    If you're just starting out on the Internet, choosing a domain name is one of the first major decisions you will have to make. I won't say that choosing a name for your site will determine the overall success or failure of your online business. It will, however, affect almost every aspect of your business. Finding a good domain name requires extensive planning.
    How to Sell your Website
    There are hundreds and thousands of websites on the internet today being bought and sold and there are many places you can sell your website such as ebay and website brokers. Though this article we will explore each of these possibilities in greater details.
    Domain Name Secrets Revealed
    If internet is about interactivity between websites, domain name is the door for that interactivity. It is your online identity, very much like the name of your best friend, what is his very own personal identity.
    42 Killer Domain Secrets Exposed!
    The Basic Stuff
    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.
    Dot Com or Dot Net, Which is the Best Domain Name to Settle for?
    When seeking domain names most people get confused over whether to settle for a dot com address or a dot net one. More so in recent times when dot net addresses have risen in popularity and usage on the net.
    What is Domain Name Backordering?
    Domain names are the hottest net-real-estate on the internet. It's no wonder services like: "Domain Name Backordering" is available to the public. Can someone really backorder your domain right from underneath you? Guess again... So what is Domain Name Backordering?
    Choosing Your Domain Name ? Internet Marketing
    This is actually an important key to your business and sometimes its success. I will explain why through-out this article.
    How To Buy And Sell Domain Names Part Time For Profit Part 2
    Let's just take a quick glimpse at what we've done so far:
    ICANN Registrar: za-Domains for Anybody
    Cologne, 12.10. 2004. ICANN accredited registrar Secura announces today,that the company is accepting the registration of za-domains.
    Do You Have a Good .Com Name? What is One So Important!
    A domain can leave an imprint on the mind of a prospective client. Just like a catchy phone number, it is easy to remember and can be send out loud in a rhythm. Whenever someone sees your domain name for your company it must be able to stick with them throughout the day so they can easily check out your site when they get a chance. Sometimes this may not be till the end of a long day at work, so having a domain name that stays in the mind of a client is very important.
    Secrets of Expired Domain Name Traffic
    One of the biggest challenges to a webmaster is how to generate traffic. More traffic to your website equates to more sales. So how does one generate extra traffic to their website? Search engine optimization, email campaigns, pay-per-clicks, banner advertising, are among some of the tactics that are popular. Another method of generating traffic is through expired domain names.
    How To Really Profit from Domain Names
    Have you heard about domain names that sold for over a million dollars? Inspired by this, you imagine registering a great domain name, hanging onto it for a while, and then selling it off to become the next multi-millionaire. It could happen, but don`t count on it!