Cpanel / WHM Tutorials

How to change the Server IP address in WHM

How to change the Server IP address in WHM

In some cases, you might want the accounts on your server that don’t have dedicated IP addresses to share an IP address other than the server’s main IP. WHM lets you change the main shared IP to any of those currently assigned to your server.

The Edit Setup area enables you to edit your server configuration settings that you created during the installation and initial log on process. This includes editing your master IP address, BIND version, contact details if problems occur, and related information.

WARNING: Do not change your server settings unless you are absolutely sure you know what you are doing. Altering these settings incorrectly can result in cPanel and WebHost Manager functioning incorrectly

How to change the Server IP address in WHM

1. Updating the IP address in the Control Panel.

To change the IP for the WHM/cPanel follow the below steps.

  • Using an SSH interface like PuTTY you can connect to your VPS server.
  • Update the following command in you control panel license.
# /usr/local/cpanel/cpkeyclt
  • login WHM
  • Now log into the WHM panel using this address: https://new_server_ip:2087
  • Go to Home>>Main >> Sever Configuration >> Basic cPanel and WHM setup menu and click on All Tab.

How to change the Server IP address in WHM

How to change the Server IP address in WHM

  • To set up the Shared Internet protocol virtual host, the ‘IP address‘ field is used. Enter the new Internet protocol address in the ‘Basic Config‘ section at that time save the changes.

  • Go to Home >> Main >> Account Functions and change the IP address of the site so that the added user sites’ IP is updated.
  • After selecting the ‘User‘ then click on ‘Change‘.
  • From the drop-down menu select the new IP address and click ‘Change‘.

Repeat this procedure for every newly created user. By filtering the users using the User Name or the Domain name using the account search function this process can be speeded up.

2. On your DNS server updating the IP address

The following step exhibits how to change the IP address for the private name servers (NS) of your specified DNS server.

  • Come on Home >> Main >> Server Configuration >> Basic cPanel & WHM Setup menu and click on All Tab button.
    At this juncture beneath the ‘Nameservers‘ section change the Internet protocol address and click save the changes.

3. Update the A Record.

Below are the steps to update the A-records for the prevailing zones in the DNS on the WHM cPanel.

  • Come on Home >> Main >> DNS Functions >> Edit DNS Zone menu.
  • Select the ‘Domain‘ and the ‘Edit‘ button.
  • To the A record apply the new IP address.
  • This procedure has to be repeated for all added domains.

If you have got this far, give yourself a pat on the back, as you have just migrated your main IP!

 

About the author

Avatar

jon snow

Jon is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, and currently a content creator for ERRORHAT who loves working with computers and strongly believes in sharing knowledge.

Add Comment

Click here to post a comment