Fun with DNS: Three Useful Commands

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 ez publishing, inc. provides the essential tools for using the Web as a marketing tool. The package includes web hosting, the ez publishing, inc. solution. Please email questions or comments about this article to ez publishing, inc.. Thank you.

cheapest limo Glendale Heights ..
In The News:

With fake invoices and sextortion threats, here's a look at some of the latest spam emails currently circulating and how you can better protect yourself from them.
Kurt "CyberGuy" Knutsson weighs in on Apple's latest iPhone lineup, its features, specs and pricing and the options that are best for you.
The Seaglider is a cutting-edge, all-electric transportation vehicle that combines elements of boats, hydrofoils and aircraft for a different kind of transport.
Kurt "CyberGuy" Knutsson explores what's new with Apple's iOS 18, which has introduced big changes in design, features and overall usability.
During this election season, beware of fake candidate websites and fake social media accounts. Scammers can exploit passion to build trust and steal information.
Stay up to date on the latest AI technology advancements and learn about the challenges and opportunities AI presents now and for the future.
Your online presence can risk your safety, but you can protect your privacy. Tech expert Kurt “CyberGuy" Knutsson offers tips to take control of your digital footprint.
Tech expert Kurt “CyberGuy" Knutsson reveals how the STING package makes Tesla’s Cybertruck an apocalypse-ready survival machine.
Kurt “CyberGuy" Knutsson: Apple’s AirPods Pro 2 will double as hearing aids via a software update.
Tech expert Kurt “CyberGuy" Knutsson says the National Security Agency advises weekly phone reboots to protect against cyberattacks and enhance mobile security.
Tech expert Kurt “CyberGuy" Knutsson discusses how sextortion scams now add home photos to threats, aiming to make blackmail scarier.
The Rubishack is a mobile tiny house built on a Cummins truck, perfect for adventurous living. Tech expert Kurt “CyberGuy" Knutsson takes a closer look at the tiny marvel.
A hacker shared 240 gigabytes of Toyota customer information on a dark web forum that included contact and financial information, emails and other data.
University researchers have developed a small, portable device that can accurately measure microplastics in water samples within minutes.
New Jersey-based Avis Rent A Car is the latest victim of a cyberattack that apparently has revealed personal information of hundreds of thousands of people.
Stay up to date on the latest AI technology advancements and learn about the challenges and opportunities AI presents now and for the future.
The Plaud NotePin memory capsule is an AI-powered device you can wear around your neck like jewelry, and it helps you remember things.
Here are some of my best time-saving tricks when using Microsoft Office and Google Workspace including dictating text, freezing spreadsheet panels and recovering old file edits.
A skyscraper in New York has become the first high-rise in the world to use a robot to wash windows. Ozmo has robotic arms on a cleaning platform.
Technological advancements with baby monitors, which have varying levels of security, have brought new risks, including potential hacking.
The Associated Press-NORC Center for Public Affairs Research and USAFacts conducted a poll last month that found the majority of respondents do not trust artificial intelligence for accurate data.
There's been a sudden surge across the U.S. in anonymous messages that start with "hello" or "hi" that could leave recipients concerned.
Stay up to date on the latest AI technology advancements and learn about the challenges and opportunities AI presents now and for the future.
Kurt “CyberGuy" Knutsson discusses what Americans should be concerned about after nearly 1 million Medicare beneficiaries’ data was compromised in a recent data breach.
Tech expert Kurt “CyberGuy" Knutsson reveals how scientists developed a method for robots to sense touch using AI and sensors.

CHMOD - Undertanding File Permissions on a Unix-Based Server

The basic command for changing file permissions in unix based... Read More

Web Hosting in 2005 --- Finding the Niche and Cashing in!

Web Hosting in 2005 --- Finding the Niche and Cashing... Read More

Dedicated Web Hosting : The Executive Summary

What is Dedicated Web Hosting? Dedicated web hosting can alleviate... Read More

Web Hosting Solutions In Birmingham

Once you have a website you then need to think... Read More

Web Hosting Providers - Find A Newbie Friendly Web Site Host

If you're about to set up your first web site... Read More

Web Hosting: Shared or Dedicated - Which Should You Choose?

Before you begin your search for a web host you... Read More

Unique Features that Leading Web Hosts are Now Offering

Some web hosts are offering more than others for the... Read More

Top 5 Mistakes that May Drive Your Visitors Away in Less Than 2 Minutes

You took the leap. You set up a website to... Read More

How To Build A Successful Hosting Company

There are a couple of key things to look at... Read More

How VOIP Has Helped Change Web Hosting

There is really no stopping VOIP (voice over internet protocol)... Read More

Cheap Web Hosting, What To Look For And What To Stay Away From

"Bargains for sale, Unlimited Hosting for only a Dollar.""Get your... Read More

Web Hosts: Helping Us Navigate Through This Future Techno-World

Computers, Internet, Web sites?what do they all mean? Hey, you're... Read More

Web Design and Hosting - Free Web Hosting Perks That Will Perk Up Your Web Site

If you've got or are considering a web hosting account... Read More

How to Choose a Web Hosting Company

Web Hosting AdviceChoosing a web hosting company to host your... Read More

What Is Web Hosting?

Many businesses, from one-man-bands to multi-national corporations, have a web-presence... Read More

Dedicated Server Price Check

The price of dedicated hosting services has really come down... Read More

Does Your Host Fight Spam?

Virtually anyone with an email address knows what Spam is,... Read More

How You Pay More for Unused Web Space and Traffic

"2GB web space with 50GB traffic for $5.95 per month!"A... Read More

Handling Your Email Addresses

--Company Email Addresses--Web hosting companies should provide company email accounts... Read More

Top 6 Ways to Promote Your Web Hosting Business Part 2

Here are the following three methods that can help you... Read More

4 Critical Things To Look Out For In A Web Hosting Service

1. The reputation of the web hosting company.Most web hosting... Read More

Advanced Hosting for the Mission Critical Web Presence

As companies that conduct their business online have proliferated, hosting... Read More

Website Sitebuilders: Easy to use Website builders Come with a Price

Professional web designers don't come cheap. A good web designer... Read More

Tips on Finding a Hosting Service for Your Business Website

There are so many hosting companies offering to host your... Read More

Windows Hosting versus Linux Hosting

The matter of choosing between the operating system (OS) running... Read More

Benton Cadillac Escalade rental ..