For anyone who owns a domain, MX records are often key to your ability to receive email at your domain.
MX records, or Mail Exchanger records are used by mail servers across the Internet to identify what server is supposed to handle incoming mail for your domain.
Lacking an MX record, mail for "somebody@www.example.com" would be delivered to the "A record" or address record of www.example.com. That hostname may simply be a webserver, and there may be a desire to have a mail server on a different server. In addition, people often prefer to have their email be "somebody@example.com", and frequently enough, "example.com" doesn't have an A record.
Finally, what happens if you're restarting your "example.com" or "www.example.com" server? With just an A record, when that box is down, email sent to you will bounce.
Now there are load balancers and other advanced techniques companies can use to maintain high availability, but these techniques are unnecessary if you use MX records.
Specifically, you can specify a priority for MX servers. If MX server "a" is down, Internet email will just "automagically" work if you've defined a lower priority server "b" to take the load when "a" is down. This is because mail servers on the Internet will defer to a secondary if the primary is unreachable.
In my previous post, I mentioned DNS propagation, and mail is the most visible aspect of this principle. Using the technique I used, you'll see this in action. Having moved my domain registrar to register.com, and now with the ability to modify my DNS, I first had to tell register.com to "Restore Default DNS Server Settings".
This step changes the "NS" or NameServer records from pointing to the DNS servers on Richard's service, to those at register.com. But, don't do this step without being prepared to define all the other settings for your domain because any uncached requests won't find your domain because now all domain lookups will go to register.com, who doesn't have any of your domain's information yet!
Having "restored" the NS records to register.com, I could now add A and MX records for my domain. So I quickly defined my www.khan.org host to the IP address of my web host, and defined the MX records for my new mail hosting service. I also set it up (and this is optional) to use my old MX server at Richard's service as a low priority secondary in case there was something wrong with my new service.
A few tests from a few different mail service providers and doing nslookups/digs (utilities to look up DNS records) I confirmed that DNS was setup correctly and that the register.com settings were working.
I've glossed over the part about selecting and configuring "my new mail hosting service", but that'll be covered in part 3.
Sat, 29 Mar 2008
My blog covers topics I find of interest or worth sharing. I tend to cover topics around software development, Internet, or personal interests like music, photography or Disney.
- June 2024 (1)
- March 2021 (1)
- October 2020 (1)
- September 2020 (3)
- September 2019 (1)
- April 2018 (1)
- January 2018 (1)
- October 2017 (2)
- January 2017 (2)
- December 2016 (1)
- November 2014 (1)
- February 2014 (1)
- October 2013 (1)
- August 2013 (1)
- July 2013 (1)
- June 2013 (1)
- December 2012 (1)
- October 2012 (1)
- May 2012 (1)
- April 2012 (6)
- January 2012 (1)
- October 2011 (1)
- September 2011 (1)
- August 2011 (3)
- July 2011 (1)
- June 2011 (1)
- May 2011 (2)
- February 2011 (1)
- January 2011 (1)
- December 2010 (1)
- September 2010 (4)
- August 2010 (2)
- July 2010 (1)
- June 2010 (1)
- May 2010 (2)
- March 2010 (1)
- February 2010 (1)
- January 2010 (5)
- December 2009 (3)
- November 2009 (3)
- October 2009 (7)
- September 2009 (7)
- August 2009 (6)
- July 2009 (2)
- June 2009 (4)
- May 2009 (5)
- April 2009 (7)
- February 2009 (1)
- January 2009 (3)
- December 2008 (4)
- November 2008 (2)
- October 2008 (2)
- September 2008 (7)
- August 2008 (11)
- July 2008 (1)
- June 2008 (4)
- May 2008 (5)
- April 2008 (8)
- March 2008 (9)
- February 2008 (1)
- January 2008 (3)
- December 2007 (3)
- November 2007 (3)
- October 2007 (10)
- September 2007 (8)
- August 2007 (2)
- July 2007 (1)
- June 2007 (14)
- May 2007 (8)
- April 2007 (5)
- March 2007 (4)
- January 2007 (4)
- December 2006 (2)
- November 2006 (1)
- October 2006 (1)
- May 2006 (1)
- March 2006 (3)
- January 2006 (7)
- December 2005 (1)
- November 2005 (1)
- October 2005 (12)
- August 2005 (6)
- July 2005 (5)