Re: Zone stats

2023-08-27 Thread Mark Elkins via bind-users
Thank you Timothe for this. I tested this on some of my domains and found AXFR worked the best dig @::1 $zone axfr | grep -v '^;' | grep -v '^$zone' | grep 'NS    ' | cut -f1 | cut -f1 -d' ' | sed 's/\.$//' |sort -u > axfr.$zone ... does the trick. $zone is the Zone in question.

Re: Zone stats

2023-08-21 Thread Timothe Litt
(Sorry for the duplicate/reply without context).  See below. On 21-Aug-23 11:11, Mark Elkins wrote: Hi, I'm writing some software to be able to read information from a Zone file. I am a legally authorised Secondary Authoritative Nameserver for a number of domains or rather zone files, eg.

Re: Zone stats

2023-08-21 Thread Grant Taylor via bind-users
On 8/21/23 10:11 AM, Mark Elkins via bind-users wrote: Hi, Hi, 1) Count how many delegated domains there are (Names with NS records) Mind your $ORIGIN and check the number of NS record owners. 2) Extract the above Names - so I can look for changes (Added/Deleted names) I suspect that

Zone stats

2023-08-21 Thread Mark Elkins via bind-users
Hi, I'm writing some software to be able to read information from a Zone file. I am a legally authorised Secondary Authoritative Nameserver for a number of domains or rather zone files, eg. EDU.ZA (and others). Is there an easy way to:- 1) Count how many delegated domains there are (Names