cPanel List Account shows the incorrect IP address

When list accounts shows the incorrect IP address, there can be a few issues causing the problem. The easiest way to fix is to use WHM->change sites IP address. However this may not always work.


If after a migration the old IP shows still while dns and httpd.conf has the new IP address the problem can be either the old IP is listed in /var/cpanel/users/USERNAME under the IP= line.


Second the old shared IP might be listed in /var/cpanel/mainip – this needs to be updated to the new IP address.


The final place the wrong IP can be listed is /etc/userdatadomains


After changing any of these files the cache files must be updated with /scripts/update_db_cache