Create Account with IP different from main shared IP

anty

Registered
Nov 24, 2008
3
0
51
I'm trying to add new domains distributed equally between all of my IPs.

I'm logged in as root and create a new account for each domain. The only way I can set an IP other than the main shared IP is, to select a dedicated one.

Since I want to install more domains than I have IPs, I need to manually
  1. make every new created account a reseller account
  2. allow each account to use all of my IPs
  3. set the main IP of each account to the one I want to use with my domain
  4. change the IP of the domain
  5. (optionally) remove the reseller privilege.

Have I overlooked something, or is there really no possibility to specify a shared IP on account creation?

Does anyone know a faster way to add a domain with a specific IP?
 
Last edited:

JawadArshad

Well-Known Member
PartnerNOC
Apr 8, 2008
459
7
68
PK
cPanel Access Level
DataCenter Provider
I'm trying to add new domains distributed equally between all of my IPs.

I'm logged in as root and create a new account for each domain. The only way I can set an IP other than the main shared IP is, to select a dedicated one.

Since I want to install more domains than I have IPs, I need to manually
  1. make every new created account a reseller account
  2. allow each account to use all of my IPs
  3. set the main IP of each account to the one I want to use with my domain
  4. (optionally) remove the reseller privilege.

Have I overlooked something, or is there really no possibility to specify a shared IP on account creation?

Does anyone know a faster way to add a domain with a specific IP?
I am not sure if I understand you completely, but thy don't you change your main shared IP from "WHM >> Server Configuration >> Basic cPanel/WHM Setup". You can create some accounts on one IP and after that change your main shared IP. All new accounts afterwards will by default be created on the new IP. After this, change your main shared IP again. This will help you creating all accounts as resellers and then later removing their privileges. You can check how many domains are on a single IP by checking "WHM >> IP Functions >> Show IP Address Usage".
 

anty

Registered
Nov 24, 2008
3
0
51
thy don't you change your main shared IP from "WHM >> Server Configuration >> Basic cPanel/WHM Setup". You can create some accounts on one IP and after that change your main shared IP. All new accounts afterwards will by default be created on the new IP. After this, change your main shared IP again.
Thank you, Howard. I haven't thought about that. I've tried it and it works great.
The only disadvantage is, that it's not "thread save", meaning another person adding a domain at the same time would cause unexpected behavior.

Is there no one-step solution?
 

JawadArshad

Well-Known Member
PartnerNOC
Apr 8, 2008
459
7
68
PK
cPanel Access Level
DataCenter Provider
Thank you, Howard. I haven't thought about that. I've tried it and it works great.
The only disadvantage is, that it's not "thread save", meaning another person adding a domain at the same time would cause unexpected behavior.

Is there no one-step solution?
You want all accounts to have access to all IPs and then also do not want them to use those IPs. Well, the only other option would be to restrict resellers to use a specific IP or a set of IPs, I am not sure if this is of your use but you can try the feature under "WHM >> Resellers >> Reseller Center >> Edit Privileges/Nameservers". This way, a reseller will not assign any IP to a domain other than the one you choose for that reseller.
 

fire692

Member
Jul 20, 2009
6
0
51
This worked for me. Thank you

I am not sure if I understand you completely, but thy don't you change your main shared IP from "WHM >> Server Configuration >> Basic cPanel/WHM Setup". You can create some accounts on one IP and after that change your main shared IP. All new accounts afterwards will by default be created on the new IP. After this, change your main shared IP again. This will help you creating all accounts as resellers and then later removing their privileges. You can check how many domains are on a single IP by checking "WHM >> IP Functions >> Show IP Address Usage".
 

losvre

Registered
Mar 25, 2011
3
0
51
Thank you, Howard. I haven't thought about that. I've tried it and it works great.
The only disadvantage is, that it's not "thread save", meaning another person adding a domain at the same time would cause unexpected behavior.

Is there no one-step solution?
Hello Anty,

May I ask you if the question you asked for WHM/Cpanel was for a reseller account you had OR about a dedicated server that you had installed WHM/Cpanel?

Thank you
 

losvre

Registered
Mar 25, 2011
3
0
51
Hello there,

You could get WHMCS to automate things. Make different packages and then assign them to different IPs via WHMCS. So, every time someone picks a package will be assign it the corresponding IP.