• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
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