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! 🙂
Due to growing digitalization, Email Communication has become the backbone of professional interactions. Yet, surprisingly, many professionals struggle to craft…
As the digital landscape continues to evolve, securing your website has never been more crucial. SSL, or Secure Sockets Layer,…
As a web designer and web developer your experience must have reached to new height, right? Further, you need to…
In today's digital landscape, timing is everything. Whether you're a social media manager, business owner, or content creator, the success…
Are you a website owner? Maintaining the website is the prime concern for any website owner. Yes, it’s equally important…