<html><head><base href="x-msg://96/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Method 1: Compare the timestamp on the slave zone file with the system's current date. Compare that difference with the expire timer in the SOA record in the same zone file. If the difference is greater than the expire timer, then the zone is expired.</div><div><br></div><div>Method 2: Check the logs.</div><div><br></div><div>Chris Buxton</div><div>BlueCat Networks</div><br><div><div>On May 3, 2011, at 11:53 PM, hugo hugoo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">Dear all,<br> <br>Is there a way to check that a slave zone is expired?<br>I use dig in the following way to see that the zone is not responding on my server...but is this due to the fact that the zone is expired or another problem?<br> <br>dnszone002:/etc/bind/zones/slave# dig @localhost<span class="Apple-converted-space"> </span><a href="http://omega-pharma.be">omega-pharma.be</a><span class="Apple-converted-space"> </span>soa<br> <br>; <<>> DiG 9.3.4 <<>> @localhost<span class="Apple-converted-space"> </span><a href="http://omega-pharma.be">omega-pharma.be</a><span class="Apple-converted-space"> </span>soa<br>; (1 server found)<br>;; global options:  printcmd<br>;; Got answer:<br>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26868<br>;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 13, ADDITIONAL: 0<br>;; QUESTION SECTION:<br>;omega-pharma.be.               IN      SOA<br>;; AUTHORITY SECTION:<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://A.ROOT-SERVERS.NET">A.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://B.ROOT-SERVERS.NET">B.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://C.ROOT-SERVERS.NET">C.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://D.ROOT-SERVERS.NET">D.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://E.ROOT-SERVERS.NET">E.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://F.ROOT-SERVERS.NET">F.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://G.ROOT-SERVERS.NET">G.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://H.ROOT-SERVERS.NET">H.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://I.ROOT-SERVERS.NET">I.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://J.ROOT-SERVERS.NET">J.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://K.ROOT-SERVERS.NET">K.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://L.ROOT-SERVERS.NET">L.ROOT-SERVERS.NET</a>.<br>.                       518400  IN      NS     <span class="Apple-converted-space"> </span><a href="http://M.ROOT-SERVERS.NET">M.ROOT-SERVERS.NET</a>.<br><br> <br>- How can I see that it is because the zone is expired?<span class="Apple-converted-space"> </span><br> <br>- Is there a way to visualise all the zones that are expired (to make a cleanup of the configuration)<br> <br> <br>Thanks for your feedback,<br> <br>Hugo, <br> <br>_______________________________________________<br>bind-users mailing list<br><a href="mailto:bind-users@lists.isc.org">bind-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/bind-users">https://lists.isc.org/mailman/listinfo/bind-users</a></div></span></blockquote></div><br></body></html>