swapip 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 option.
swapip utility is located at /usr/local/cpanel/bin/swapip
To use this utility, execute the following, specifying the appropriate parameters: /usr/local/cpanel/bin/swapip $sourceip $targetip $ftpip $domains $sourceip, $targetip, $ftpip, and $domains are meant to symbolize the parameters you wish to enter. See below for more information.
127.0.0.0
208.77.188.166
208.77.188.166
example.com
/usr/local/cpanel/bin/swapip 127.0.0.0 208.77.188.166 208.77.188.166 example.com would change the nameserver records for example.com on 127.0.0.0 to point HTTP and FTP requests to 208.77.188.166.
A successful swapip 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 208.77.188.166 208.77.188.166 example.com root@example [~]#An unsuccessful
swapip 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 208.77.188.166 example.com Error: domains missing Usage: /usr/local/cpanel/bin/swapip sourceip destip ftpip domains...
Copyright © cPanel 2000-2009.