SitemapClient LoginContact Us
HomeWho We AreWhat We OfferOur WorkTechnologyWhitepapersVenturesClients & PartnersNews
Big Apple Design Group: Website Design and Development Manhattan
Featured Insight
A simple DNS explanation using nslookup

By: Ranjan S. Chari

The Domain Name System (acronymm DNS) is a distributed internet directory service. It's function is to translate a domain into an IP address. DNS is used for everything that's related to communicating with a web address be it email, browsing, FTP etc.

So if DNS fails for some reason all activities on the internet would come to a standstill.

The way domain names and DNS work
A domain name is first purchased thru a Domain Registrar. Ex:, etc. At the time you sign up for the domain, you're asked to submit your personal information, and information on 2 or more Name Servers. This information is stored on a 'root DNS server'.When someone searches for your domain on the web or using any other service that needs to get hold of details on your domain, these root servers are queried. An exception is when you cache the DNS information locally.

Now, the root DNS server returns your domain's Name Server information to the requester. The Name Server in turn provides the requested the requested information, namely:

"A" record: The IP address of the domain

Example: A

"MX" record: The mailserver for the domain

The MX records are used to figure out where to deliver your email.

Example: MX 0
Example: MX 10

Above, the example shows us that has 2 mail servers which preference 0 & 10. So if the server with preference '0' is inaccessible the next preference server is contacted.

"CNAME" or Canonical Name

This is used to point something like to or some IP address.

Many a times you need to make changes or to create a DNS entry. To do this simply, Windows has a program called NSLOOKUP. Using this tool, one can find a lot of information on a domain.

On your Windows PC or your Linux/UNIX box, from the command line (prompt) run 'nslookup'

On the prompt type in the following:

> set querytype=MX

The first command is to specify that you want to check the MX record.
The second command is to specify the domain for which you want the check to be done.

Other Queries:

> set querytype=CNAME
> set querytype=A
> set querytype=NS
> set querytype=ALL

Sample Output for 'set querytype=MX':

Server: UnKnown

Non-authoritative answer: MX preference = 0, mail exchanger = nameserver = nameserver = nameserver = nameserver = internet address = internet address = internet address = internet address =

Similarly you can do:

> set querytype=ALL
Server: UnKnown

Non-authoritative answer: internet address = internet address = internet address = internet address = nameserver = nameserver = nameserver = nameserver =
primary name server =
responsible mail addr =
serial = 2002112102
refresh = 3600 (1 hour)
retry = 1800 (30 mins)
expire = 604800 (7 days)
default TTL = 600 (10 mins) MX preference = 0, mail exchanger = nameserver = nameserver = nameserver = nameserver = internet address = internet address = internet address = internet address =

Latest Insights
Internet Centric Business Modeling: The Power of Virtualization
SEO & SEM: The Winners are the Thinkers and Experimenters
Contact Us
Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001


Bookmark and Share