Dedicated ip for subdomain, addons and parked domains?

tui

Well-Known Member
Jun 15, 2007
84
5
58
Mexico
cPanel Access Level
Root Administrator
Hello,

Im on a need to add dedicated ip addresses to a client account for his subdomains, the reason is for SEO, rdns, for mail delivery, and for a script that he has that is used for each subdomain in order to obtain some info from another server that he owns and he wants to know the ip in order to make restrictions, time access and other stuff relating for each ip that represent different departments and agents, he has con control everything for the ip access to give permissions and block any other ip's for access... creating a multiple cpanel accounts for subdomains is not a option because the new amazing cpanel license model and because he dont want to have multiple cpanel accounts only to put the same script to them....

Is it possible to assign a dedicated ip to a subdomain, addon domain or parked domain? A workaround to achieve this or manually do this?
 

DennisMidjord

Well-Known Member
Sep 27, 2016
227
27
28
Denmark
cPanel Access Level
Root Administrator
1. Edit /var/cpanel/userdata/username/subdomain.example.com
2. Update the IP
3. Do the same for /var/cpanel/userdata/username/subdomain.example.com_SSL
4. Go to Home >> IP Functions >> Show/Edit Reserved IPs and set the IP as reserved
5. Run the following command:
Bash:
/scripts/rebuildhttpdconf
6. Restart your webserver