Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Assign a dedicated IP to a Sub-domain,Add-on or Park domain  (Read 3147 times)

0 Members and 1 Guest are viewing this topic.

dustin

  • Guest
Edit the subdomain related file under /var/cpanel/userdata/<username>/ directory.

# vi /var/cpanel/userdata/<username>/subdomain.domain.tld
Change the value of “IP” to a dedicated IP and save the file

Rebuild the Apache configuration for the changes to take affect
# /scripts/rebuildhttpdconf

Restart the Apache webserver
# service httpd restart

Add dedicated IP and sub-domain in the /etc/domainips
dedicatedIP: subdomain.domain.tld

Save the file and rebuild the IP pool
# /scripts/rebuildippool

Edit the DNS zone file, add an ‘A’ record for the sub-domain to point to the new IP
# vi /var/named/domain.tld.db

Save the file and restart the ‘named’ service
# service named restart