• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is 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.

Issue create DNS Zones for all Domains

Michael Huber

Basic Pleskian
Hello,

I install Bind on a Plesk 12.5 Server. this server has already 500 Domains.

how to create the DNS Zones for all domains in a batch (from template in tools & Settings)

thank you
 
Hi Michael Huber,

you might consider to use the following commands over your command line ( logged in as user "root" ):

Code:
ls /var/www/vhosts/system | while read x; do /usr/local/psa/bin/dns --on $x; done
/usr/local/psa/admin/bin/dnsmng --restart

The first command assumes, that all your 500 domains are setup with the standart Plesk - vhosts - configuration at "/var/www/vhosts/system" - if this differs on your server, pls. change the command/location to your unique modification.
 
Thank you for help, but is not working.
root@sw-cz01:/var/log# plesk bin dns --on xxxxxxxxxxx.com
SUCCESS: Switching DNS state for Domain 'xxxxxxxxxxx.com' complete.
root@sw-cz01:/var/log# /usr/local/psa/admin/bin/dnsmng --restart


in Plesk DNS Settings display me:
No items found.

in Database: is no zone.


I also try:
/usr/local/psa/bin/dns --reset XXXXXXXXXXXXXXXXX.com -ip 1.2.3.4

this add the zone and the entried of template in the Database but not displayend in plesk. if I restore to default in plesk, in the database are 2 zones of the domain !?
 
Back
Top