Recent Articles

Apache Geronimo Should Be Included In BEA's Future
I just read that Carl Icahn owns a 8.5% stake, worth $426.5M, in BEA. He wants to see BEA sold in order to maximize shareholder value. While I can understand this point of view, I'd like to offer another option..

Will Solaris Go After Low Hanging Fruit?
There's more noise about Solaris competing with Linux over at slashdot. I can understand the argument that Sun should direct their efforts to Linux. You know, Peace, Love, Linux. But which business would throw away...

Server & Data Center Energy Efficiency
Slashdot reported that the US Environmental Protection Agency (EPA) delivered a study on Server and Data Center Energy Efficiency. Here is the 13 page summary and the full (133 pg) report. Here are a few...

Do You Trust Your Vendor?
One of the things that I get to do in my new job with VMC is find out what people's pain points are and as I was doing research yesterday on vendors, what has been traditionally outsourced, and who has written...

Do You Really Need A Domain Controller?
Let's start out with the good points: there are advantages to a Microsoft Domain Controller model. Centralized user control, fine grained resource access control: these are often useful and very helpful. But not every business needs this, and there are...

An Introduction to Network Forensics
Have you ever heard of network forensics? Not everyone has but the meaning is actually very important. It basically means the recording, analyzing, and capturing of events on a network in order to determine how...



10.04.07

Lazy DNS

By A.P. Lawrence

I had a call this morning from a customer who wanted me to come down because their mail server was broken.

They had experienced an ISP outage, which subsequently was fixed, but their mail server wasn't getting anything still.

I was actually ready to go out the door when I thought to just double check reality, and that check kept me sitting right here:

$ dig +short xyz.com mx
10 mail.xyz.com.xyz.com.
20 mail2.xyz.com.xyz.com.

Ooops.. that certainly can't be right. I told the client that his MX records were munged, but he came back with a screen from the DNS providers tools that seemed to show them correctly. It looked something like this:

MX Records
mail.xyz.com
mail2.xyz.com

I told him to try taking out the ".xyz.com", but he said the tool told him that was invalid.. at which point I smiled to myself and knew what he had to do.

Do you know what he needed to do to fix this?

Cost Effective Website and Network Monitoring
IPCheck Server Monitor - Free Download

Answer

I told him to do this:

MX Records
mail.xyz.com.
mail2.xyz.com.

That is, simply add a "." after "xyz.com". If you have ever edited DNS files manually, you know why I similed and why I titled this "Lazy DNS": at the text file level, if you leave off the period from a definition like this, the assumption is that the base domain name needs to be tacked on. So this DNS tool is "lazy" : it expects the MX records to be formatted exactly as they need to be put in the raw file. Any halfway decent programmer would have done minimal checking and reformatting to easily avoid this error by the user, but that checking does not exist here.

This of course fixed the problem after the records propagated:

$ dig +short xyz.com mx
10 mail.xyz.com.
20 mail2.xyz.com.

*Originally published at APLawrence.com


About the Author:
A.P. Lawrence provides SCO Unix and Linux consulting services http://www.pcunix.com

About SysAdminNews
SysAdminNews is a collection of articles, news and commentary designed to keep system administrators informed about the latest trends impacting their profession. Updates and Advice for System Administrators

SysAdminNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
SysAdminNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITManagementNews.com

-- SysAdminNews is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2007 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article



Database Forum Updates and Advice for System Administrators SysAdminNews News Archives About Us Feedback SysAdminNews.com About Article Archive News Downloads WebProWorld Forums iEntry Advertise Contact Jayde