<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 27/05/2013 8:58 PM, Geert-Jan
Bruinsma wrote:<br>
</div>
<blockquote
cite="mid:CAO=LOmjDH0=4+ry07MWyGegmZrWd4=c3bGrTQoAmwFaPQLfbpg@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<br>
<div style="">It seems PowerDNS does not allow using a CNAME
record and A record for the same domain.</div>
<div style=""><br>
</div>
<div style="">What is reason for this limitation?</div>
<br>
</div>
</blockquote>
<br>
Hi,<br>
<br>
A CNAME cannot have any other resource types defined (except in the
case of DNSSEC). This is covered in RFC 1912 (section 3.6.2) and RFC
1034 (section 2.4).<br>
<br>
There may be better ways to do what you would like to achieve but
the geo backend or the pipe backend (with your own script to do the
lookup etc.) should work fine. If you are using PowerDNS to serve
the zone already the geo backend is trivial to get working.<br>
<br>
With the geo backend the lookup would be something like:<br>
<br>
<a class="moz-txt-link-abbreviated" href="http://www.domain.com">www.domain.com</a> CNAME <a class="moz-txt-link-abbreviated" href="http://www.cdn.domain.com">www.cdn.domain.com</a><br>
pool.domain.com A 123.123.123.123<br>
dsa.domain.com CNAME <a
href="http://www.mydomain.com.dsaprovider.com">www.mydomain.com.dsaprovider.com</a><br>
<br>
With a geo-maps file with something like<br>
<br>
$RECORD www<br>
$ORIGIN domain.com<br>
<br>
0 pool<br>
36 dsa<br>
<br>
<br>
This means you would have a geo-zone of cdn.domain.com<br>
<br>
Let me know if you have any questions about the setup for this.<br>
</body>
</html>