Re: how to check if a slave zone is expired

2011-06-04 Thread Warren Kumari
And I finally gotten enough cycles to write a script to do this and released it on Google Code ( https://code.google.com/p/dns-slave-expire-checker/ ). It is very simple, but if folk find it useful I can add additional functionality... It is a simple Python program: ./dns_expire_checker.py -r

Re: how to check if a slave zone is expired

2011-05-08 Thread Barry Finkel
I review the BIND syslogs on my servers daily. The syslog will tell me if any slave is having problems loading a zone. I expect that the hostmasters at my off-site slaves do the same. If I slave a zone for someone else, and I see problems, I contact the owner of that zone. --

Re: how to check if a slave zone is expired

2011-05-06 Thread John Wobus
I try to catch zones that are not updating on the slaves to which I have access. I compare the modtime of the zone file with the current time and the refresh interval for the zone. Typically I allow a failure or two before alerting, e.g. wait 1 refresh + 2 retry intervals. If the expire

Re: how to check if a slave zone is expired

2011-05-05 Thread John Bond
On 5/4/11 10:22 AM, hugo hugoo wrote: So..no way to check that a zone is expired? Hello Hugo, I recently wrote a small script which mails me about any zones that is due to expire within the next 24 hours. This works by using the last change time of the file on disk and the SOA expiry time.

Re: how to check if a slave zone is expired

2011-05-05 Thread Chris Thompson
On May 4 2011, Doug Barton wrote: On 05/04/2011 01:22, hugo hugoo wrote: So..no way to check that a zone is expired? You're asking the wrong question. The correct question is, How can I make sure that a zone is up to date on all of the slaves? You do that by querying the SOA record for the

Re: how to check if a slave zone is expired

2011-05-05 Thread Doug Barton
On 05/05/2011 04:35, Chris Thompson wrote: On May 4 2011, Doug Barton wrote: On 05/04/2011 01:22, hugo hugoo wrote: So..no way to check that a zone is expired? You're asking the wrong question. The correct question is, How can I make sure that a zone is up to date on all of the slaves? You

how to check if a slave zone is expired

2011-05-04 Thread hugo hugoo
Dear all, Is there a way to check that a slave zone is expired? 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? dnszone002:/etc/bind/zones/slave# dig @localhost omega-pharma.be soa

Re: how to check if a slave zone is expired

2011-05-04 Thread Chris Buxton
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. Method 2: Check the logs. Chris Buxton

RE: how to check if a slave zone is expired

2011-05-04 Thread Marc Lampo
Hugo, This must be a configuration error on ns2.skynet.be. The other 3 authoritative name servers answer fine, for omega-pharma.be; ns2.skynet.be. returns the list of root name servers, meaning it isn't configured to be slave for that domain. Contact Skynet/Belgacom helpdesk to get this

RE: how to check if a slave zone is expired

2011-05-04 Thread hugo hugoo
Marc, This example was maybe not the best one. My questions remains as other zones are well unavailable on all name servers. Regards, Hugo, From: marc.la...@eurid.eu To: hugo...@hotmail.com; bind-users@lists.isc.org Subject: RE: how to check if a slave zone is expired Date: Wed, 4 May

RE: how to check if a slave zone is expired

2011-05-04 Thread Marc Lampo
Hugo, “zones” don’t “expire”, like DNSSEC RRSIG with their “end of validity time stamp”. At worst, a slave name server is unable to verify the SOA record on the master for “expiry” time. At that point, the slave name server still “knows” it is authoritative, but has no data it could answer

RE: how to check if a slave zone is expired

2011-05-04 Thread hugo hugoo
Marc, Thanks for the feedback. I have indeed seen in the logs that the zone is expired on ns2 but my question was more general in order not to have to always try to see the logs (info not available if the zone has expired some weeks ago..). So..no way to check that a zone is expired?

Re: how to check if a slave zone is expired

2011-05-04 Thread Doug Barton
On 05/04/2011 01:22, hugo hugoo wrote: So..no way to check that a zone is expired? You're asking the wrong question. The correct question is, How can I make sure that a zone is up to date on all of the slaves? You do that by querying the SOA record for the zone on each slave and compare the

Re: how to check if a slave zone is expired

2011-05-04 Thread Jeff Pang
2011/5/5 Doug Barton do...@dougbarton.us: On 05/04/2011 01:22, hugo hugoo wrote: So..no way to check that a zone is expired? You're asking the wrong question. The correct question is, How can I make sure that a zone is up to date on all of the slaves? You do that by querying the SOA record