Via WHM:
Go to WHM > Change site’s IP Address , select the account, then select the IPVia Command Line:
/usr/local/cpanel/
bin/setsiteip -u $user $ip
Manually:
-Edit /var/named/domain.com.db and increment the serial number. For help in changing DNS-Replace instances of the old IP with the new IP in /var/cpanel/userdata and /var/cpanel/users
replace 123.123.123.123 222.222.222.222 — /var/cpanel/userdata/user/*-If the new IP is shared, remove the user’s main domain entry from /etc/domainips. If it’s a dedicated IP, add/change the IP in /etc/domainips and /etc/ssldomains (if the site has an SSL)
replace 123.123.123.123 222.222.222.222 — /var/cpanel/users/user
-Run /scripts/rebuildhttpconf and /scripts/rebuildippool
No comments:
Post a Comment