<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Playing on the frontier &#187; cname</title>
	<atom:link href="http://siphon9.net/loune/tag/cname/feed/" rel="self" type="application/rss+xml" />
	<link>http://siphon9.net/loune</link>
	<description></description>
	<lastBuildDate>Wed, 18 May 2011 12:10:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Don&#8217;t ever put CNAME on the root domain (esp. if you want MX to work)</title>
		<link>http://siphon9.net/loune/2009/03/dont-ever-put-cname-on-the-root-domain-esp-if-you-want-mx-to-work/</link>
		<comments>http://siphon9.net/loune/2009/03/dont-ever-put-cname-on-the-root-domain-esp-if-you-want-mx-to-work/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 12:58:14 +0000</pubDate>
		<dc:creator>Loune</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cname]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mx]]></category>

		<guid isPermaLink="false">http://siphon9.net/loune/?p=23</guid>
		<description><![CDATA[I was changing name servers for one of my domains. When testing the mail setup, I kept getting mail sent to the web server rather than the mail server. It turns out that if the mail server can&#8217;t find mx records, it falls back to A (or CNAME) records. So why was the mail server [...]]]></description>
			<content:encoded><![CDATA[<p>I was changing name servers for one of my domains. When testing the mail setup, I kept getting mail sent to the web server rather than the mail server. It turns out that if the mail server can&#8217;t find mx records, it falls back to A (or CNAME) records. So why was the mail server falling back to using the A/CNAME record when I had a perfectly good MX record assigned to the domain? After many hours of debugging and comparing working domain with non-working ones, the only difference I found was that I has a CNAME for the domain eg.</p>
<p>domain.com. 3600 IN CNAME www.domain.com</p>
<p>Turns out that if you have a CNAME for the domain, it redirects the lookup not just for A but for every record. So from dig, it looks fine if you query the authorative name servers directly &#8211; you see the mx and cname record &#8211; but it falls flat when queried on the recursive nameserver. Indeed after looking at RFC 1034, it states that &#8220;If a CNAME RR is present at a node, no other data should be present&#8221;. So setting the CNAME on the domain also consequently redirected requests for NS and SOA records, which made the domain quite invalid, although the subdomain records still resolved. Bottom line, don&#8217;t ever put CNAME on the root domain.</p>
<p>I was trying to be smart and save on retyping the IP by using CNAME&#8230; but turns out I was too smart.</p>
]]></content:encoded>
			<wfw:commentRss>http://siphon9.net/loune/2009/03/dont-ever-put-cname-on-the-root-domain-esp-if-you-want-mx-to-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

