• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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