Article ID: 119253, created on Dec 21, 2013, last review on Apr 26, 2014

  • Applies to:
  • Plesk


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

Script content:

    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

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF