• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

How to DNS Template Apply all domains single command

ghacvbbngff

New Pleskian
Hi, I have more than 100 domains on my vps server and I want to change all of them new dns template that I fixed new nameservers. How can I do that?

Thanks.
 
Try to use following method:

1. Remove old NS record from all domain's DNS zones:

# 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 $i -ns '' -nameserver ns2.test.tld; done


2. Add new NS record 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 --add $i -ns '' -nameserver ns.test.tld; done

3. Update and reload new zones:
# # for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/admin/sbin/dnsmng -update $i; done

Note, it is just example. Modify it as you need.
 
Back
Top