• 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

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