<div dir="ltr">There is also transfer logs -- you could watch those and see if you are getting any failures, but this seem, um, more brittle..<div><br></div><div>W</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Feb 8, 2016 at 6:22 AM Klaus Darilion <<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Am 08.02.2016 um 14:59 schrieb Warren Kumari:<br>
> The standard, compatible way to do this is simply to do a lookup for the<br>
> SOA record and make sure that the serial number matches what you expect<br>
> it to be / what is on the master. I'm not sure what monitoring tool you<br>
> are using (or if you are writing your own), but most standard monitoring<br>
> tools have such a script already written -<br>
> e.g: <a href="https://exchange.nagios.org/directory/Plugins/Network-Protocols/DNS/checkexpire/details" rel="noreferrer" target="_blank">https://exchange.nagios.org/directory/Plugins/Network-Protocols/DNS/checkexpire/details</a><br>
<br>
This does not detect problems between the master and slave as long as<br>
the master is not updated.<br>
<br>
Further I can not fetch the serial easily from the slave as our slave is<br>
a "bump in the wire" signer, so the SOA is the internal increased<br>
"DNSSEC serial". So I would need to extract it from the local zone<br>
files/journal.<br>
<br>
> I believe that BIND also updates the mtime on the zone file when it does<br>
> the check (not only when something changes):<br>
> root@eric:/etc/namedb/slave# date<br>
> Mon Feb 8 08:36:58 EST 2016<br>
> root@eric:/etc/namedb/slave# ls -al <a href="http://superficialinjurymonkey.com" rel="noreferrer" target="_blank">superficialinjurymonkey.com</a><br>
> <<a href="http://superficialinjurymonkey.com" rel="noreferrer" target="_blank">http://superficialinjurymonkey.com</a>>*<br>
> -rw-r--r-- 1 named named 714 Feb 8 03:51 <a href="http://superficialinjurymonkey.com" rel="noreferrer" target="_blank">superficialinjurymonkey.com</a><br>
> <<a href="http://superficialinjurymonkey.com" rel="noreferrer" target="_blank">http://superficialinjurymonkey.com</a>><br>
> -rw-r--r-- 1 named named 1236 Feb 8 03:51 <a href="http://superficialinjurymonkey.com" target="_blank">superficialinjurymonkey.com</a>.jnl<br>
> root@eric:/etc/namedb/slave#<br>
><br>
> So, you should be able to just run 'ls' and see if the 'mtime' is larger<br>
> than you expect...<br>
<br>
This is an interesting hint and good starting point. Thanks.<br>
<br>
Nevertheless, additionally I would to need to extract the SOA refresh<br>
value for every zone to find out if a zone is not fresh any more.<br>
<br>
Thanks<br>
Klaus<br>
</blockquote></div>