- Plesk 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 loop while connected via SSH:
Note: create Plesk database backup before applying global changes.
# 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