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 wi

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 de

Re: bind-users Digest, Vol 4302, Issue 1

2023-08-21 Thread Timothe Litt
a) Use named-compilezone to extract the zone with journals applied. b) my favorite: do an axfr of the zone, which gives the correct data with all the pseudo-ops expanded c) Use a library - I use Perl's Net::DNS - and write code to do the axfr & walk the zone - it allows you to access fields i

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. ED