Extract all labels from nsd

Hello,

I like to enable "qname-minimization" on our unbound resolver.
Now I've concerns some domains we host may not be resolvable anymore. I suspect missing delegations that may break things.

To avoid such damage I like to extract all labels nsd could serve and check them systematically.

foreach $label {
   if $parent_label is hosted at same server {
     check if ns record exist and is valid
   }
}

make that sense? And if so: how to fetch $all_labels from nsd4 ?

Thanks for suggestions
Andreas

A. Schulze:

foreach $label {
  if $parent_label is hosted at same server {
    check if ns record exist and is valid
  }
}

ping

no one has an idea?