• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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