Hi guys,
I need an SSH command to run on a daily basis to check all the DNS Zones with their accounts on the server and if the account does not exist, then I need to remove this DNS Zone from this dir ( /var/named )
Example:
example1.com.cat >> example1.com (If the domain "example1.com" exist, then do nothing)
example2.com.cat >> example2.com (If the domain "example2.com" doesn't exist, then remove the DNS file "example2.com.cat")
I need an SSH command to run on a daily basis to check all the DNS Zones with their accounts on the server and if the account does not exist, then I need to remove this DNS Zone from this dir ( /var/named )
Example:
example1.com.cat >> example1.com (If the domain "example1.com" exist, then do nothing)
example2.com.cat >> example2.com (If the domain "example2.com" doesn't exist, then remove the DNS file "example2.com.cat")