[Pdns-users] Return CNAME or other alias backend as A
Daniel Miller
dmiller at amfes.com
Wed Feb 5 20:31:07 UTC 2020
Does PowerDNS have anything built-in that would allow aliased records returned as A records? In other words:
$ORIGIN .
example.com 86400 IN CNAME cloud1.example.com.example.com 86400 IN MX 10 mail.example.com.
example.com 86400 IN NS ns1.example.com.
example.com 86400 IN NS ns2.example.com.
example.com 86400 IN SOA ns1.example.com hostmaster.example.com 2020020500 28800 7200 604800 86400
cloud1.example.com 86400 IN A 10.0.0.1
mail.example.com 86400 IN CNAME cloud1.example.comns1.example.com 86400 IN CNAME cloud1.example.com
ns2.example.com 86400 IN CNAME cloud1.example.com
The above domain would be invalid as CNAME's are illegal for MX and NS records. But is there perhaps a configuration setting that would have PowerDNS internally resolve and return the CNAMEs as the correct A records - so any query of this authoritative server would never see CNAMEs?
Could this perhaps be done via Lua?
Given modern editors and interfaces I know it's not a major undertaking to update multiple records as IP addresses change - but still it would be nice to have the convenience of updating records to the minimum extent possible.
--
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20200205/30b83ee3/attachment.htm>
More information about the Pdns-users
mailing list