• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.
Resource icon

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

No permission to download
This tool updates domain DNS entries in PLESK in bulk.
To use it, simply specify the domain name, and the IP addresses of your (new) server.

New Version:
* Permits multiple IP addresses separated by commas (The first ip4 and ip6 are used for all records except SPF; all IP's are used for the SPF)
* Permits IPv6 addresses to be entered

To accomodate this change, a new parameter was added to the command line:

Usage: change-dns-records.rexx domain newip4[,newip4,...] [newip6,[newip6,....]] [OK]

If there is no ipv6 address, simply enter a single dot in its place.

Examples:
change-dns-records.rexx kalfaoglu.net 11.22.33.44,1.2.3.4 .
change-dns-records.rexx kalfaoglu.net 11.22.33.44 2a01:4f9:5a:105f:: OK
change-dns-records.rexx kalfaoglu.net 11.22.33.44 . OK


Omit the OK parameter first, to see what it will do.. running the script without the OK parameter shows the commands that will be executed, but does not execute them.
Back
Top