Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change of IP address for one domain

Discussion in 'Bind / DNS / Nameserver Issues' started by ar4, Feb 6, 2018.

  1. ar4

    ar4 Registered

    Joined:
    Feb 6, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hi,
    I have 10 IP addresses connected to the server. The customer has 10 domains on one account. How do I change the IP address for 1 domain? How to set different IP addresses for each domain?
     
  2. cPMikeB

    cPMikeB Linux Technical Analyst II
    Staff Member

    Joined:
    Mar 21, 2017
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    78
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Provided you're referring to a single cPanel account and not a reseller account with 10 resold accounts, there is no built in support for setting unique IP addresses for addon, sub or parked domains under a single cPanel account.

    You would have to edit the /var/cpanel/userdata/$user/$domain file(s) and set a different IP address for each of the other domains, rebuild the userdata files and httpd.conf and then change the A record(s) in the corresponding DNS zone files to reflect the desired IP address.
     
Loading...

Share This Page