In this article, we will see how to change IP address for the domain in Plesk using terminal.
Changing IP addresses is never a fun task for the server administrator. In the Plesk you can change the IP address of the domain easily using command.
1. Switch IP address for single domain
To change IP address for single domain use following command:
# plesk bin subscription –update example.com -ip 127.0.0.1
Note: replace 127.0.0.1 to your new IP.
2. Switch IP address for multiple domain/subscriptions:
# plesk bin subscription –list > /root/subscr.txt
If you want to remove/exclude some domains, you can edit subscr.txt file and remove those domains from the list.
Run following command to change the IP
# cat /root/subscr.txt | while read i; do plesk bin subscription -u $i -ip 127.0.0.1 ; done
That’s it. The command will change the IP address of the domain and it will modify DNS setting too.
We have seen how to change IP address for the domain in Plesk using terminal in this article.
[Need assistance to fix this error or install tools? We’ll help you.]