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?


Hi,

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 123.123.123.123
dsa.domain.com CNAME www.mydomain.com.dsaprovider.com <http://www.mydomain.com.dsaprovider.com>

With a geo-maps file with something like

$RECORD www
$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.
_______________________________________________
Pdns-users mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-users

Reply via email to