Fun With Dns: Three Useful Commands
![]() Cheap Web Hosting! Unmetered Traffic & Space Unlimited Domains Unbeatable Pricing Unlimited Web Hosting |
The DNS is a distributed, hierarchical database where authority flows from the top (or root) of the hierarchy downward.
When thinking of the structure of the DNS, imagine an inverted tree. Each branch of the tree is within a zone of authority; however, multiple branches of the tree can be within a single zone.
The software (Bind being the most common) that stores domain name information is called a domain name server. A single name server can be authoritative for multiple zones. All zones have a primary master and a secondary master name server that provides authoritative responses for their zones.
If you query a name server not authoritative for a particular zone, that name server will most likely have up-to-date information. This is because zone information propagates throughout the Internet at regular intervals, and name servers cache zone information for which they are not authoritative.
DNS Commands
There are three crucial commands that can put all the DNS information you need at your fingertips. The way to use this article is to try each of the commands listed on a domain name, so you can see what the output looks like. Learn by doing!
Zone file database records divide DNS information into three primary types: NS (Name Server) records, MX (Mail Exchange) records, and A (Address) records. NS records indicate the name servers. MX records indicate the hosts that handle e-mail delivery; the priority (pri) number indicates the order in which mail servers are used, with the lowest number receiving the highest priority. The A (Address) records map hostnames to IP addresses, the real names of machines.
host
This is the simplest of the DNS commands. It is a quick way to determine the IP address of a hostname:
: host www.your-domain-name.com
The -a option will return all of the DNS information in verbose format.
: host -a www.your-domain-name.com
Now that you know the IP address for www.your-domain-name.com, try a reverse lookup.
: host IP-ADDRESS
dig (domain information groper)
This command gathers and returns DNS information in a format the name server can use directly. You will find it easy to query specific name servers with dig.
You can quickly determine the Name servers of your host or any other host:
: dig ns your-host.com
Then you check your (or another) website against the host's name servers:
: dig www.your-domain-name.com @ns.your-host.com
Dig can provide output that is in the same format as the zone file itself. Here is how to get the whole zone file:
: dig any your-domain-name.com
Here are the most useful dig query types: dig any (gathers all DNS information), dig ns (gathers name server information), dig mx (gathers mail exchanger information) and dig a (gathers network address information).
The dig command can also do reverse lookups with output formatted for the zone file:
: dig -x IP-Address
nslookup
You can use this tool as a single line command, or you can use it interactively, which distinguishes it from the other DNS commands. Once you have started nslookup, type set all to list the default options. As with dig you can choose the server (name server) you want to query, and you can decide the type of DNS information on which to focus.
Just as you can issue commands to nslookup interactively, you can also change the initial defaults by starting a .nslookuprc file. The format of the .nslookup is one command per line:
set type=NS
set domain=srvns.your-host.com
set timeout=10
Conclusion
These three commands can provide you with most of the information you need about your domain names. They are powerful tools, and this article should provide you enough information to get started or offer a quick refresher if you already use these commands.
About the Author:
Dan Forootan founded EZ Publishing, Inc. in 1998. EZ Publishing's Small Business Web Hosting provides the essential tools for using the Web as a marketing tool. The package includes web hosting, the StreamSend permission-based email marketing solution. Please email questions or comments about this article to articles@ezpublishing.com. Thank you.
The ?website? Checklist : Domains, Hosting, Web Design
This article is meant to all who already have a website or who propose to buy it. Website ? the term comprises three things : Domain, Hosting (Web space) & We...(related: Cheap Web Hosting)
Switching Web Host
Moving a web site to a new host is not as difficult as you may think. If you follow the tips below carefully you should be fine and have your site up in no time at all.First Off:Do not get over excited when you see an extremely cheap hosting plan, look carefully at what the plan they provide and always read the terms and conditions for tricks or hidden fees. Define your own requirements before hand and look for a hosting plan that match closest to your soon to be old web host. A 24/7 support with phone support is a must! Try to find a host that uses the same operating system as your existing host. Get a web host that has a fast Internet connec...(related: Cheap Web Hosting)
Elements Of Web Hosting
When you first start out trying to get a site on the Internet everything seems so confusing. Obtuse acronyms flow freely through the 'Beginner Friendly' information sites and definitions can be hard to come across. The main reason for this is that the Internet and the process of getting a website online is really very simple, and once people get past the first stumbling steps they rarely remember the difficulty they once had, which leads to them being unable to understand the next wave of dot com newbies.So let's begin with defining some of the basic terms that are commonly thrown around when looking for a web host. You'll quickly realize that computer geeks like using big words for simple concepts. What do you expect from a group of people that decided to call half a Byte a...(related: Cheap Web Hosting)
Transferring Your Existing Website To A New Hosting Provider
You've already got a website, but your current hosting provider can no longer meet your needs, provide adequate service, costs too much, or is going out of business. You need to move your website to a new host. How do you do this? This situation arises all the time, but many people don't know where to...(related: Cheap Web Hosting)
Does Your Host Fight Spam?
Virtually anyone with an email address knows what Spam is, and has, perhaps, considered giving up the speed, convenience, and simplicity of email because of it. Those who have their own websites are more vulnerable than the average person wi...(related: Cheap Web Hosting)
Choosing A Web Host Based On Price? Dont!
It's tempting. There are so many companies offering cut-rate hosting ? loaded with astounding post-futuristic techno-gizmo features ! ? that it just makes sense to save a few dollars, right?Think again. First, consider how much you would be saving. If you run a business site, saving $5, $10 or even $15 a month is not a big saving. No going concern will become a stopping concern on account of even $15 a month. But the wrong web host can stop a business cold.<...(related: Cheap Web Hosting)
Low Cost Web Hosting Services ? Dont Forget About Uptime
Once you have your company's web site up and running, it is vital that you do everything possible to keep it that way. Nothing sets off alarms in a customer's head faster than a non accessible web site or one that has features which do not work. A web site is literally your company's window to the world and every aspect of the site; including t...(related: Cheap Web Hosting)
How To Have Several Websites But Pay For Only One Websites Hosting
Many online entrepreneurs these days are faced with the problem of running several websites and having to maintain several web hosting accounts for the various sites. Ac...(related: Cheap Web Hosting)
Website Sitebuilders: Easy To Use Website Builders Come With A Price
Professional web designers don't come cheap. A good web designer can easily charge you $1000 or more for a five page website. This high cost leads many people to tackle web design for themselves. How hard can it be? Get yourself an HTML editor, throw up a website and voila! Your website is live right? Wrong! There is a lot of knowledge you need to develop before you can get your self made website onto the...(related: Cheap Web Hosting)
Bound To Your Old Expensive Web Host By Fear?
You're not alone! Many people are bound to the old web host they've used for years because they're afraid of the hassle of switching. Customers will pay rates three or four or even ten times greater than what they have to, just because they're terrified that switching will be too complicated or that they'll end up losing their site altogether.New customers just coming online and setting up sites for the first time may automatically assume that expensive prices and brand names, such as Yahoo or MSN or MasterCard automatically mean better service.Think again!While you should never base your hosting choice on price alone, you should certainly make your return on investment a priority. You can easily find plenty of space f...(related: Cheap Web Hosting)
links - site-map - Copyright © 2008 Datorsam Make Money Online | All Rights Reserved. | Cheap Web Hosting
