• 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/

Change DNS !

J

JoaoCorreia

Guest
Hello,

I want to change the DNS servers on all domains from ns1.domain.com to
ns1.otherdomain.com , is there any automated way to do this ?

Thanks
Joao Correia
 
there is a set of command line utilities to manage Plesk in /usr/local/psa/bin. 'dns' is a particular one which you need:

# deletes old record for domain domain.tld
/usr/local/psa/bin/dns -d domain.tld -ns '' -nameserver ns1.domain.com
# adds new one
/usr/local/psa/bin/dns -a domain.tld -ns '' -nameserver ns1.otherdomain.com

just run both through cycle with domain names you want to update.
 
Hi,

As far as I can remember, this can be done by changing the dns records from plesk database, vhanging the dns template, then disable and enable the dns zones with group operations too.
 
Back
Top