[Pdns-users] geo backend to use a CNAME and A record for the same domain

shthead lists at shthead.com
Mon May 27 13:21:11 UTC 2013

On 27/05/2013 8:58 PM, Geert-Jan Bruinsma wrote:
> It seems PowerDNS does not allow using a CNAME record and A record for 
> the same domain.
> What is reason for this limitation?


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).

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.

With the geo backend the lookup would be something like:

www.domain.com CNAME www.cdn.domain.com
pool.domain.com A
dsa.domain.com CNAME www.mydomain.com.dsaprovider.com 

With a geo-maps file with something like

$ORIGIN domain.com

0 pool
36 dsa

This means you would have a geo-zone of cdn.domain.com

Let me know if you have any questions about the setup for this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20130527/f9f7ee11/attachment-0001.html>

More information about the Pdns-users mailing list