Sometimes dealing with DNS can be a pain. So we did a few scripts to make life easier for us. We have written scripts to fix some common issues we faced running our Directadmin servers cluster.
Delete orphan zones
bash <(curl -s https://bash.license.icu/da/delete_inactive_dns_zones_directadmin.sh)
Ok since that is done now let’s sync the zone .db files to our DNS cluster servers
rsync -avzu -e “ssh -p 7162” /var/named/.db root@dns1.tanzaniaservers.com:/var/named/ ssh -p 7162 root@dns1.tanzaniaservers.com “chown named.named /var/named/.db”
Make sure you have installed Yatosha’s DNS Cluster script on the DNS server for it to work best with Directadmin.
