- Plesk 10.4 for Linux
DNS is switched off for a lot of domains in Plesk. How to enable DNS service for all domains registered in Plesk without manual actions for each domain?
This can be performed by the following script:
Before executing the script please create Plesk Panel database backup:
mysqldump -uadmin -p`cat /etc/psa/.psa.shadow` psa > /root/psa_`date +%F`.sql
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -Ns -e"SELECT name FROM dns_zone" | while read dz ; do /usr/local/psa/bin/dns --on $dz ; done