• 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

Mass edit DNS for 1000 domains?

J

JohnD@

Guest
Hello.

I have put up two new MX-servers to check and clean mail from viruses and spam. What I simply will have to do is to remove the current MX-record:

domain.com MX10 mail.domain.com

to...

domain.com MX10 mx1.mymailserver.com
domain.com MX10 mx2.mymailserver.com

But I have around 1000 domains and to edit the DNS by hand really freaks me out. Is there a way mass edit them easy? Build a php scipt that edit the PLESK DNS-table maby and then use some script to rebuild the zone files? Any suggestions welcome.
 
You can do this only with scripting. The easiest solution is to directly edit the database and then run:

/usr/local/psa/admin/bin/dnsmng
 
Back
Top