• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Question Disable and remove DNS for all domains

pge

New Pleskian
Hey! Is there a way to remove DNS service for all domains on the server? Preferrably via CLI.
Also ideally while removing the complete DNS service from the server.
 
Removes all resource records from all domain's DNS zone:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/dns --del-all $i; done

Switches off DNS service for all domains:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/dns --off $i; done
 
Back
Top