The swapip Utility
utility allows you to update nameserver records by specifying 4 parameters in a command line interface. This can be useful if, for example, you have moved an account from one server to another and did not use the Express Transfer
All 4 of the input parameters associated with this utility are required.
Using the swapip utility
utility is located at
To use this utility, execute the following, specifying the appropriate parameters:
/usr/local/cpanel/bin/swapip $sourceip $targetip $ftpip $domains
$domains are meant to symbolize the parameters you wish to enter. See below for more information.
- sourceip (string) — The old IP address.
- targetip (string) — The new IP address.
- ftpip (string) — The new FTP server's IP address.
- domains (string) — One or more domains associated with the IP address being changed.
- Note: You may enter more than one domain by separating each new domain with a space ( ).
/usr/local/cpanel/bin/swapip 127.0.0.0 126.96.36.199 188.8.131.52 example.com
would change the nameserver records for
to point HTTP and FTP requests to
attempt should return you to the command line without displaying any messages. The output should resemble the following:
root@example [~]# /usr/local/cpanel/bin/swapip 127.0.0.0 184.108.40.206
attempt should result in an error message, the output of which will resemble the following:
root@example [~]# /usr/local/cpanel/bin/swapip 127.0.0.0 220.127.116.11 example.com
Error: domains missing
Usage: /usr/local/cpanel/bin/swapip sourceip destip ftpip domains...
At this time the error message may not give an accurate assessment of the error that has occurred.
Topic revision: r4 - 19 Feb 2011 - 00:37:30 - Main.JustinSchaefer