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

Make in India, Make for the World: How Hostripples Empowers Modi’s Vision

Introduction Prime Minister Narendra Modi’s clarion call — “Make in India, Make for the World” — is not just a…

5 hours ago

AI – Powered Customer Support in Hosting: Chatbots & Virtual Assistants

Customer support has always been the backbone of the web hosting industry. From helping users set up domains to troubleshooting…

2 weeks ago

ChatGPT: Your Ultimate AI Content Generation Tool

Content is the most vital asset for businesses navigating the digital era. But creating high-quality, engaging content consistently can be…

4 weeks ago

Discover Ollama: How It Works, Features & Everything?

Welcome to the exciting world of Ollama, a revolutionary open-source tool that's democratizing access to Large Language Models (LLMs). If…

1 month ago

Connecting to Amazon EC2 via WinSCP (SFTP): A Complete Guide

Managing files on your Amazon EC2 instances can often feel like navigating a complex maze, especially when you prefer a…

2 months ago