This could be done with two commands in command line. One to kill the DNS zones and one to add the DNS zones. I'm only selecting the domains in /etc/trueuserdomains, which are the main domains. The issue here is going to be that subdomains will be yanked when doing this. You might change to grabbing the list from /etc/localdomains instead without the cut portion. Before doing this, a backup must
be made of /var/named and /etc/named.conf:
cp -R /var/named /var/named.bak110826
cp -R /etc/named.conf /etc/named.conf.bak110826
The commands would then be to remove and readd the zones:
for i in `cat /etc/trueuserdomains | cut -d: -f1` ;do /scripts/killdns $i ;done
for i in `cat /etc/trueuserdomains | cut -d: -f1` ;do /scripts/add_dns --domain=$i ;done
I would highly suggest first running "/scripts/killdns domain.com" for one account, then "/scripts/add_dns --domain=domain.com" for that same account to see the results to ensure they are what you want before proceeding.
Please note that you could load the list from a precompiled list of domains instead also, then use `cat /root/domainlist` instead of reading from /etc/trueuserdomains. This way you can control what domains are being touched.