How To

How to add dedicated IP to addon domain or sub-domain

To add dedicated IP to addon domain or sub-domain

This post explains for how to add dedicated IP to addon domain or sub-domain. Please follows step by steps.

Step 1: You will need to first add the domain to your cPanel account.

Step 2: Login to your server via SSH.

Step 3: Edit the virtual host file for addondomain located at: /var/cpanel/useradata/username/addondomain.maindoman.com

                                                 or

Edit the virtual host file for subdomain located at:
/var/cpanel/useradata/username/subdomain.maindoman.com

Step  3 ( A ): First you must locate the line with the current IP address and edit this to your desired dedicated IP address

Step 3 ( B ): Save your file without changing anything else.

Step 4: Now run /usr/local/cpanel/scripts/rebuildhttpdconf

                               or

/scripts/rebuildhttpdconf

Step 5: Login into WHM and navigate to Main >> DNS Functions >> Edit DNS Zone

Step 6: Select your desired domain name here and click edit.

Step 7: Update your A records now to the new IP address and click save.

Step 8: Finally, it is recommended that you restart both Apache and the DNS server.

That’s it! 🙂


Mayuresh Vaidya
Mayuresh Vaidya is an electronics and telecommunication engineer having an experience in embedded technology he worked on many technologies such as raspberry pi, Arduino, along IOT home automation devices based on Google and Alexa, also he had good interest in emerging technologies such as IOT, digital marketing, and web related technologies such as hacking and securities.

Recent Posts

The Ultimate Showdown: Linux vs Windows for VPS Hosting

As the demand for virtual private servers (VPS) continues to grow, businesses and individuals are faced with a crucial decision:…

2 weeks ago

Questions to Ask Your Web Hosting Support Team

Web hosting is a large industry, as many other factors help any web hosting provider to form a company. The…

2 weeks ago

How to Secure Your WordPress Site in 2025

Welcome to the complete guide to WordPress security best practices in 2024. As technology evolves rapidly, implementing strong security measures…

3 weeks ago

Unlocking the Secrets of Hosting: Essential Questions to Ask Hostripples

Hey, wanted to learn about web hosting? Or do you want to start a new website and need hosting? Questions…

3 weeks ago

DDoS Attacks: What You Need to Know for Protection

In today's digital world, the threat of DDoS attacks has become increasingly prevalent. These types of attacks have the power…

1 month ago