<div dir="ltr">The standard, compatible way to do this is simply to do a lookup for the SOA record and make sure that the serial number matches what you expect it to be / what is on the master. I'm not sure what monitoring tool you are using (or if you are writing your own), but most standard monitoring tools have such a script already written - e.g: <a href="https://exchange.nagios.org/directory/Plugins/Network-Protocols/DNS/checkexpire/details">https://exchange.nagios.org/directory/Plugins/Network-Protocols/DNS/checkexpire/details</a><div><br></div><div>I believe that BIND also updates the mtime on the zone file when it does the check (not only when something changes):</div><div><div>root@eric:/etc/namedb/slave# date</div><div>Mon Feb  8 08:36:58 EST 2016</div><div>root@eric:/etc/namedb/slave# ls -al <a href="http://superficialinjurymonkey.com">superficialinjurymonkey.com</a>*</div><div>-rw-r--r-- 1 named named  714 Feb  8 03:51 <a href="http://superficialinjurymonkey.com">superficialinjurymonkey.com</a></div><div>-rw-r--r-- 1 named named 1236 Feb  8 03:51 superficialinjurymonkey.com.jnl</div><div>root@eric:/etc/namedb/slave#</div></div><div><br></div><div>So, you should be able to just run 'ls' and see if the 'mtime' is larger than you expect...</div><div><br></div><div>W</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Feb 8, 2016 at 5:40 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">Hi!<br>
<br>
I want to monitor the freshness of my slaves zones. Is it somehow<br>
possible to extract the status of slave-zones from bind?<br>
<br>
Thanks<br>
Klaus<br>
_______________________________________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/bind-users</a><br>
</blockquote></div>