• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
Resource icon

Instruction A script to change the IP addresses of all hosts of a domain for migration 2.0

No permission to download
When migrating domains to a new server, you may need to change the IP addresses related to that domain at the SOURCE server. So that when the migration is done, the old server advertises the new IP of that domain.
PLESK doesn't do it by default, and it gets painful to do it manually.
This script learns the DNS entries of a domain, and makes changes only for PTR, TXT "spf1" and A records of that domain.

Usage: change-dns-records.rexx example.com 22.33.44.55 [OK]
where the 22.33.44.55 is the new IP address (the server you are migrating to).

If the script is used without the OK parameter, it only shows the commands, but does not execute it.
The script is written in ooRexx, and the ooRexx needs to be downloaded/installed from https://www.oorexx.org/download.html

If you need to do it for many domains, just put all the domains, one per line, in a file, and then run:
# cat domains | xargs -I '{}' change-dns-records.rexx '{}' 11.22.33.44 OK

Always make backups first!

PS: The scripts looks for the '-all' of the SPF record. If your ending SPF parameter is something else, change the script accordingly.

Please forward all suggestions to turgut@kalfaoglu.com.. thank you!

PS: The UPDATE adds ipv6 support. make sure to check it out.

Turgut Kalfaoglu
  • Like
Reactions: DynaTechSystem
Author
tkalfaoglu
Downloads
5
Views
168,789
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from tkalfaoglu

Latest updates

  1. change-DNS-records.rexx 2.0: Mass DNS record change tool - Added ipv6 support

    This tool updates domain DNS entries in PLESK in bulk. To use it, simply specify the domain...
Back
Top