• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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