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.

Scripting IP assignments

Discussion in 'General Discussion' started by ehowe, Feb 12, 2009.

  1. ehowe

    ehowe Member

    Feb 19, 2008
    Likes Received:
    Trophy Points:
    I'm working on an ongoing script to migrate accounts between cpanel servers. I have the entire script written and working wonderfully except for ensuring dedicated IPs are assigned. I haven't yet found a good way to accomplish this. The only way I have found so far is updating /var/cpanel/userdata/$user/$domain(s), /var/cpanel/users/$user, running /scripts/rebuildhttpdconf and then editing the A record in the DNS zone. This seems like a long drawn out process and doesn't seem like it would be the most reliable way. Does anybody know a better way to script this?

Share This Page