1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Mass edit DNS for 1000 domains?

Discussion in 'Plesk for Linux - 8.x and Older' started by JohnD@, Jan 22, 2006.

  1. JohnD@

    JohnD@ Guest


    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


    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.
  2. hardweb

    hardweb Guest

    You can do this only with scripting. The easiest solution is to directly edit the database and then run: