<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Apr 14, 2019 at 6:06 PM Mike <<a href="mailto:mike%2Blists@yourtownonline.com">mike+lists@yourtownonline.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> Is it possible to use both sql and the bind backend at the same<br>
time?</blockquote><div><br></div><div>Yes, you can launch multiple backends. See the launch setting in the docs [1] for more information.<br></div><div>[1]: <a href="https://doc.powerdns.com/authoritative/settings.html#launch">https://doc.powerdns.com/authoritative/settings.html#launch</a> <br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a number of zones which are pretty generic and Im happy<br>
with sql storage for these. I have another set of zones however in which<br>
it would be more useful to have a bind compatible config file for. In my<br>
case, it's for documentation; I want to be able to keep comments with<br>
records in order that the relationships between certain things are<br>
spelled out and bind format is a convenient (and logical) place for<br>
this.</blockquote><div><br></div><div>Unfortunately, the BIND backend cannot handle comments, as far as I understand, as noted in the documentation on top of its page [2]. I've tried this in the bindbackend.conf file and it only ignored the comment if it was the very first line. On other lines it would just throw a syntax error at me. As a workaround in my case, I manage my configuration and zone files in Ansible, from Jinja2 templates and use Jinja2 comments that don't end up in file on the PowerDNS server.<br></div><div>[2]: <a href="https://doc.powerdns.com/authoritative/backends/bind.html">https://doc.powerdns.com/authoritative/backends/bind.html</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If it matters, I really only care about this on my (hidden) master<br>
server, which is where all of this administration takes place.<br></blockquote><div><br></div><div>Yes, on zone transfers to slaves, the file won't be copied as-is, but an "interpreted" "autogenerated" version will be sent. That means that if you're using the BIND backend on slaves, you won't see the very same file contents in terms of ordering, and when using DNSSEC, the AXFR will emit the zone signed, adding the RRSIG/DNSKEY records, etc.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Awesomeness would be able to keep the order of records and comments in<br>
sql backend but thats a feature request...<br></blockquote><div><br></div><div>The current SQL schema appears to store comments with references to zones by ID, not by their zone name. Also, SQL backends store information with relation to each other. It does not sound like a good idea to me to reference to items not part of the same data source even.<br></div><div>(Also, what do you mean by order of records? I thought in DNS, records don't really have an order, but just for displaying it to the user/administrator they may have. But since you're talking about flat file BIND zone files, this is under your own control.)</div><div><br></div><div>HTH<br></div></div></div></div></div>