[Pdns-users] geo backend to use a CNAME and A record for the same domain
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
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 220.127.116.11
dsa.domain.com CNAME www.mydomain.com.dsaprovider.com
With a geo-maps file with something like
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...
More information about the Pdns-users