• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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