<div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 25, 2019 at 4:38 PM Frank Altpeter <<a href="mailto:frank.altpeter@gmail.com">frank.altpeter@gmail.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"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div>Well, first of all, I was indeed thinking that the default-soa-edit value has to be set equally on both sides. So after removing this setting from the slave part of the problem has been magically removed.</div><div><br></div><div># pdnsutil increase-serial einhorn.bar<br></div><div> SOA serial for zone einhorn.bar set to 2019042506</div><div><br></div><div># dig +short +noshort @{master,slave} einhorn.bar SOA</div><div><div>einhorn.bar.<span style="white-space:pre-wrap">             </span>3600<span style="white-space:pre-wrap">    </span>IN<span style="white-space:pre-wrap">      </span>SOA<span style="white-space:pre-wrap">     </span><a href="http://ns1.foxalpha.de" target="_blank">ns1.foxalpha.de</a>. <a href="http://frank.altpeter.de" target="_blank">frank.altpeter.de</a>. 2019042508 10800 3600 604800 3600</div></div><div><div>einhorn.bar.<span style="white-space:pre-wrap">             </span>3600<span style="white-space:pre-wrap">    </span>IN<span style="white-space:pre-wrap">      </span>SOA<span style="white-space:pre-wrap">     </span><a href="http://ns1.foxalpha.de" target="_blank">ns1.foxalpha.de</a>. <a href="http://frank.altpeter.de" target="_blank">frank.altpeter.de</a>. 2019042508 10800 3600 604800 3600</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>That looks good (consistent) to me. :-)<br></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"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div></div><div>But they still don't match the value in the database. I also don't get the increment of two.<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>You've applied a soa-edit, so of course they don't match the database backend - that's what the soa-edit setting does in the first place - real time edits of the serial *on answer*. If you want to serve them unedited, don *not* use this setting. I'm still confused as to what you're trying to achieve with this setting (more at the bottom of this reply).</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"><div>Also, I'm not sure why this happens to unsigned zones, since there are 
two settings "default-soa-edit" and "default-soa-edit-signed", so if 
this increment is something needed for signed zones, why do both 
settings cause it?</div></blockquote><div><br></div><div>IIUC, default-soa-edit applies to all zones, default-soa-edit-signed overrides the default-soa-edit setting for zones which are signed. Apart from that, zones can be individually configured with a specific soa-edit configuration, but only one soa-edit transformation is performed by a single server. Although soa-edit is only required for DNSSEC to trigger a refresh of the signatures on slaves, it would stop you from unsigning a zone, because it would decrease the serial by a huge number. In order to allow you to unsign a zone, you could set default-soa-edit to apply it to any zone regardless of the sign state, but then you'll have to manually update the serial once you activate DNSSEC for it. But perhaps there are more use cases for having a soa-edit setting on multiple levels.<br></div><div>(I'm not sure if that answers your question?)<br></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"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div></div><div><div>The reason for this setting is that I like my serials to be in the format YYYYMMDDSS</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>They are already in that format in your backend, so what do you expect from PowerDNS here?<br></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"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div><div> - and as long as I got the documentation correct, the increase-serial does increase by 1 when there is no soa-edit set (globally or in domain metadata).</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>I am unable to find information regarding the pdnsutil subcommand 'increase-serial' - it's not in the manpage at least. What documentation are you looking at exactly? Anyway, I believe a serial increment by pdnsutil would be applied as if your serial is an integer, it's not aware of the format you use IIUC.<br></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"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div><div> I have set this because I wanted to prevent my zones (for example) to update from 2019042508 to 2019042509 tomorrow (because it's supposed to be 2019042601 then).</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>But your current soa-edit configuration does exactly what you're trying to prevent. To quote the example from the docs: "This changes a serial of 2015120810 to 2016010701 on Wednesday 13th of January 2016.". (note the last part, 13, will be translated to 07)<br></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"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div><div>I wasn't able to find out how to create this behaviour without having soa-edit set to inception-increment.</div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></blockquote><div><br></div><div>Are you looking for a way to automatically increase the serial for you *on edit* in the YYYYMMDDSS format? Or even without edits? Or... when? And to update the serial in the backend?</div><div><br></div><div>Either way, although I still don't quite understand what you're expecting from PowerDNS here I want to point out the following. IIUC, there's only one use case of the soa-edit setting - using DNSSEC with non-PowerDNS slaves to keep RRSIGs fresh everywhere and this seems not something that matches your situation/requirements.<br></div><div><br></div><div>HTH<br></div></div></div></div>