This guide explains how to change the IP address of a site in WHM (Web Host Manager). You'll need to update the IP in three locations: the control panel configuration, DNS server settings, and DNS zone A records. This process is typically required when migrating to a new server or changing your network configuration.

How to Do It

  1. Step 1: Update the IP Address in the Control Panel

    Connect to your VPS server using an SSH interface like PuTTY.

    Execute the following command to update your control panel license:

    /usr/local/cpanel/cpkeyclt

    Access the WHM panel using the new server IP address: https://new_server_ip:2087

    Navigate to Home >> Main >> Server Configuration >> Basic cPanel and WHM Setup and click on the All tab.

    In the Basic Config section, locate the IP address field for the Shared Internet Protocol Virtual Host. Input the new IP address and save the changes.

  2. Step 2: Update IP Addresses for User Sites

    Navigate to Home >> Main >> Account Functions >> Change Site's IP Address.

    Select the user account you want to update and click Change.

    Choose the new IP address from the drop-down menu and click Change.

    Repeat this process for each user account. You can use the account search function to filter users by User Name or Domain name to expedite the process.

  3. Step 3: Update the IP Address on Your DNS Server

    Navigate to Home >> Main >> Server Configuration >> Basic cPanel & WHM Setup and click on the All tab.

    Under the Nameservers section, modify the IP address for your private name servers (NS) and save the changes.

  4. Step 4: Update the A Records

    Navigate to Home >> Main >> DNS Functions >> Edit DNS Zone.

    Select the domain you want to update and click the Edit button.

    Update the A record with the new IP address.

    Repeat this process for all additional domains hosted on the server.