How to add a dedicated IP for addon domain in cPanel

Are you interested for monthly server support with Unlimited tickets, 24×7 monitoring, Security Audit and lot more ? please check our Monthly server support plans

To add dedicated IP for addon/sub-domain in cpanel do the following steps,

Step 1.

Login to the server via ssh

Step 2.

Edit the virtualhost file from location,

/var/cpanel/useradata/username/addondomain.maindoman.com

Search for the line with the current IP address and edit it to the required IP and save the file.

Step 3.

Run the below command,

/usr/local/cpanel/bin/build_apache_conf

Step 4.

Now login to WHM and go to,

 Main >> DNS Functions >> Edit DNS Zone

Select the desired domain and click on edit

Step 5.

Update the A record to the new IP and save it

Step 6.

Restart apache and dns server.

Also if you want to reserve the new IP only for your account, then you can do that from,

 Main >> IP Functions >> Show/Edit Reserved IPs.

So that no other domains will use this IP.

Need our help to fix the issue ? Submit Support Ticket Now

View Server Administration Packages

Leave a Reply

Your email address will not be published. Required fields are marked *