<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">Le ven. 3 août 2018 à 19:18, Simon Kelley <<a href="mailto:simon@thekelleys.org.uk" target="_blank">simon@thekelleys.org.uk</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The serial number is initialised when dnsmasq starts up to the current<br>
time (seconds since 1st Jan 1970).<br></blockquote><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
If your serial starts a one each time dnsmasq starts up then something<br>
is wrong. Maybe dnsmasq is started before the time is set in your machine?<br>
<br></blockquote><div><br></div><div>I run it on a "normal" server, the time is maintained via ntp (chrony actually).</div><div>The problem is there when I restart dnsmasq as well:</div><div><br></div><div><div>root@srv:~# dig @<a href="http://127.0.0.1">127.0.0.1</a> <a href="http://swtk.info">swtk.info</a> soa | grep SOA</div><div><a href="http://swtk.info">swtk.info</a>.              600     IN      SOA     . . 15 1200 180 1209600 600</div><div>root@srv:~# systemctl stop dnsmasq.service && systemctl start dnsmasq.service</div><div>root@srv:~# dig @<a href="http://127.0.0.1">127.0.0.1</a> <a href="http://swtk.info">swtk.info</a> soa | grep SOA</div><div><a href="http://swtk.info">swtk.info</a>.              600     IN      SOA     . . 1 1200 180 1209600 600</div><div>root@srv:~# systemctl stop dnsmasq.service && systemctl start dnsmasq.service</div><div>root@srv:~# dig @<a href="http://127.0.0.1">127.0.0.1</a> <a href="http://swtk.info">swtk.info</a> soa | grep SOA</div><div><a href="http://swtk.info">swtk.info</a>.              600     IN      SOA     . . 1 1200 180 1209600 600</div><div>root@srv:~# date +'%s'</div><div>1533316912</div></div><div><br></div><div>I do not know how the first serial ended up being 15, but a restart sets it at 1. </div><div><br></div><div>Cheers</div><div>Wojtek</div><div><br></div></div>
</div>