Verify DNS records with Dlint

ANALYSIS If you manage Domain Name System (DNS) records, you probably already know how seemingly minor errors can cause big problems. Leaving a semicolon off the end of a statement, forgetting the trailing period, or failing to add that right bracket can cause a DNS server to fail to load or to respond incorrectly to requests. Dlint is a utility that will check your domains for common errors, allowing you to fix them before a problem gets out of hand. Dlint uses Domain Information Groper (DiG) and a combination shell/Perl script to gather and parse DNS information. This script can help verify your configuration and save you some troubleshooting time in the future. What Dlint does
Dlint is basically an error checker for DNS databases. DNS allows host names to be mapped to IP addresses. Every domain name on the Internet has at least one primary "name server" (DNS server) that stores its information. This information is usually in the form of plain text files listing such DNS information as refresh rates, MX records, A records, CNAMEs, and much more. Most DNS software, such as BIND, will perform some syntax checking when it initializes. But a number of errors that won't halt the software from starting will still cause problems down the road. This is where Dlint comes in. Dlint will check the DNS for a supplied domain and determine whether it contains any errors. Dlint looks for things like common typing errors, nonfully qualified domain names, and A-record-to-PTR correspondence. Dlint will also detect subdomains automatically and recursively check them. Once this information has been gathered and processed, Dlint will provide you with the results. Installing Dlint
Dlint requires DiG 2.1 and Perl 5 or newer. Typing dig by itself should list the version number on the first line (e.g., ; <<>> DiG 9.2.1 <<>>), and entering perl --v should give you Perl's version number. Once you have verified that both are on your system and of an appropriate version, you can start installing Dlint. Dlint packages exist in multiple distribution formats from common software repositories such as RPMfind and freshmeat. Simply select the appropriate package for your Linux system. Alternatively, you can download the source tarball here. Once you have the source distribution on your system, unpack it with the tar xpfz command and cd to the newly created directory. In this directory will be a file called digparse, which you will need to modify. The digparse script performs parsing functions for the various versions of DiG and passes the information to Dlint. Open it with your favorite text editor and change the first line to represent the path to Perl. This is typically /usr/bin/perl, but it may be different on your Linux distribution. Running whereis perl can help you track down this information. You will need to manually edit a couple of additional files, the next one being the main program script itself. Open the dlint file and modify the rrfilt variable to be the destination path of digparse. The default is /usr/local/bin/digparse, and it should be fine there unless individual requirements dictate otherwise. Next, you should edit the Makefile and set your desired installation directory. The default is /usr/local and shouldn't need to be changed for most installations. If you do need to change this, modify the DEST variable to be the desired path. Note that not everything will be installed into the root /usr/local/ directory but will end up in the appropriate subdirectories, such as bin and man. After you have completed the file editing, all that is left to do is run make install. Dlint should now be installed and ready to run.

Post your comment

In order to post a comment you need to be registered and logged in

Log in or create your ZDNet UK account below

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Membership FAQ

ZDNet UK Live

dava4444

that comment bot is a nutter, it just referred me to the moderator on my own blog. shocked look. please help thank you Dava I'm afriad to...

24 minutes ago by dava4444 on Welcome to the new ZDNet UK community!
dava4444

Hi Rupert! Don't think I could fill the above shoes... but if your ever looking for a consumer rights Tech blogger..tip me the wink lol peace Dava

2 hours ago by dava4444 on Fancy working for ZDNet UK?
dava4444

Hi Rupert My photo is gone from my profile and I just got told i was a spammer by the comment bot. the navigation is gone for my profile. :O on...

2 hours ago by dava4444 on Welcome to the new ZDNet UK community!
ator1940

With windows it is always more bloat, and a lot of that seems to be duplicated in various places. I've noticed that you will have freed space on...

8 hours ago by ator1940 on Can you believe it - 2765 kB will be freed?
BuzzMyStat

Buzz My Stat : New search for http://www.zdnet.co.uk Take a look: http://www.buzzmystat.com/site/zdnet.co.uk

Karen Friar

Hi Jamie, I'm sorry your comment got caught in the spam filter. We use an industry standard blacklist for this. I suspect that the comment may...

16 hours ago by Karen Friar on Spam? Filter Changed?
J.A. Watson

Pop - Neither have I. Ever, under any circumstances. I'm much more accustomed to Windows slowly, but inexorably, consuming more and more disk...

17 hours ago by J.A. Watson on Can you believe it - 2765 kB will be freed?
John Molloy

Apple are currently pushing to get tv content on the iPad by April 3rd. This could possibly be seen as a spoiler for that announcement I suppose....

1 day ago by John Molloy
Andrew Donoghue

Hey - presume you mean something that builds on Apple's existing TV device? Apple have already had a couple of runs at building Apple TV and it's...

1 day ago by Andrew Donoghue on Google's TV timing may reveal more to come
BVE2011

Google, Sony, Intel may build TV project www.zdnet.co.uk/news/emerging-tech/2010/03/18/google-sony-intel-may-build-tv-project-40088359/

ator1940

70,0000 to 90,0000 computers? A very small number considering some of these botnets are in the millions, and there are so many of them operating,...

2 days ago by ator1940 on Microsoft says it decimated Waledac botnet
ator1940

I agree Roger, and why can't they write secure code? What will happen when they find stolen code in windows? They have a track record of...

2 days ago by ator1940 on Microsoft lashing out at Linux, open source
ator1940

Do you think it will really take days?

2 days ago by ator1940 on Microsoft previews Internet Explorer 9 with HTML 5 support
neilfab

@evilmanic have you seen the new hp on zdnetuk

Xwindowsjunkie

Wonder how many days it will take before somebody codes an exploitive hack for IE9?

2 days ago by Xwindowsjunkie on Microsoft previews Internet Explorer 9 with HTML 5 support
roger andre

There are some really good people in Microsoft and I wonder, how embarassing it must be for them to see how the organisation behaves from it's...

2 days ago by roger andre on Microsoft lashing out at Linux, open source
J.A. Watson

On further inspection, it looks like some things are missing, is it possible that there was a time lag between whatever state the site was in that...

2 days ago by J.A. Watson on Welcome to the new ZDNet UK community!
Tezzer

Ok. Now I'm getting annoyed. Previously I could just click on just about any item or comment I saw and get a reply box. How do I manage that...

2 days ago by Tezzer on ZDNet UK: faster, smarter, still IT all the way
Andrew Donoghue

hey Roger. Think I have spotted a bug as when I click on my name it takes me to the same page as if I had clicked on "Edit Profile". i.e...

2 days ago by Andrew Donoghue on ZDNet UK - Now cleaner than an Archbishop's conscience
ajclarke

Great new look for ZDNET UK web-site http://bit.ly/9R5eAA to check it out @ZDNetUK #zdnet

Featured white papers

Achieving PCI Compliance for:Privileged Password Management & Remote Vendor Access

For multi-store outlets, including retail, banking, grocery, gas, hospitality, convenience stores and others, reducing (or avoiding) the cost of in-store system support and maintenance while maintaining compliance with PCI and other requirements has become a strategic challenge.

Download now

Web 2.0 Security Threats: How to Protect Your Enterprise Network

Speaker: Dr. Chenxi Wang, Principal Analyst, Security and Risk Management, Forrester Research, Inc. As Enterprises are increasingly connected to the Internet and as hard organizational boundaries are fast disappearing, security professionals are facing fresh challenges in Enterprise computing.

Download now

MindManager - Tutorial for New Users - Short

This tutorial is for new MindManager users and teaches you how to get started, by creating maps, reading maps and organizing your information.

Download now