This is the answer to Lazy DNS
I told him to do this:
That is, simply add a "." after "xyz.com". If you have ever edited DNS files manually, you know why I smiled 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
Got something to add? Send me email.
More Articles by Anthony Lawrence © 2011-04-30 Anthony Lawrence
A Perl script is "correct" if it gets the job done before your boss fires you. (Larry Wall)