With a modern nameserver that supports the expire edns option you can also do "dig +expire soa zone @server" which will tell you how long until the zone will expire on this server.
e.g. ;; BADCOOKIE, retrying. ; <<>> DiG 9.11.0pre-alpha <<>> +expire soa . +norec +noauth ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44442 ;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ; COOKIE: 11fa29d809bed1e5bad33ed956b8efad9c6914524fd2730f (good) ; EXPIRE: 577179 (6 days 16 hours 19 minutes 39 seconds) ;; QUESTION SECTION: ;. IN SOA ;; ANSWER SECTION: . 86400 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2016020800 1800 900 604800 86400 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Feb 09 06:42:37 EST 2016 ;; MSG SIZE rcvd: 332 Mark In message <[email protected]>, Klaus Darilion writes: > > > Am 08.02.2016 um 14:58 schrieb Tony Finch: > > Klaus Darilion <[email protected]> wrote: > >> > >> I want to monitor the freshness of my slaves zones. Is it somehow > >> possible to extract the status of slave-zones from bind? > > > > If you are running 9.10 or later you can use `rndc zonestatus`. > > Ah. Nice, as updating to 9.10 is on my plan. > > I guess I need to iterate over all configured zones, may be a bit slow > for several thousand zones. I will seee ... > > > I have an older script which just looks at the timestamp of the zone > > files; BIND bumps the timestamp whenever it successfully refreshes the > > zone, even if it didn't need to transfer any changes. > > Thanks for the info > Klaus > > > _______________________________________________ > Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe > from this list > > bind-users mailing list > [email protected] > https://lists.isc.org/mailman/listinfo/bind-users -- Mark Andrews, ISC 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: [email protected] _______________________________________________ Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list bind-users mailing list [email protected] https://lists.isc.org/mailman/listinfo/bind-users

