Basics like how to use ssh, how to login to DA etc..How do I add an additional IP to a domain using the multi-IP system? With DirectAdmin 1.37.0 and newer,
If the multi-IP system allow for multiple IPs to be assigned to a User. This lets the User have unique IPs for each domain they may have on their account (or for multiple IPs per domain, useful for IPv6)
Please Note that this guide is only to add additional IPs to a User account, then giving the User multiple IPs (owned or shared).
If then you are looking to just change the IP of a User to an owned IP,
This will be also useful for having multiple domains with SSL under one User account. This is because a domain requires a unique owned IP in order to use an ssl certificate.
With the multi-IP system, this can be accomplishing all under the same User account.
*** Please Note *** : when upgrading from 1.36.2 (or older) to 1.37.0 (or newer), in order to use the multi-IP system, you must enable the unified ftp password file option, or else the multi-IP system will be disabled.
To assign a domain it is own IP using the multi-IP system (where the User account already has another IP for other domains), do the following:
1) Ensure the Creator of the User has an IP available. Go to:
Reseller Level -> IP Management
If there you are assigning an ssl certificate, ensure you see an IP with status “free”.
If there you are assigning an additional IP to a User and plan on sharing this new IP with other Users as well, it must be set as “shared” (select the IP, click “set as shared”). Only a free IP can become sharing it. If it is own, you must remove it from the User who owns it.
Once your IP is setup as desired, skip to step 3. If it is not in the list, go to step 2.
2) If there you do not see the IP in the list, you will need to assign one to the Reseller.
To do this, go to:
Admin Level -> IP Management
select an IP that is not assigning to any Reseller, then click the “Assign To” button, with the relevant Reseller selected.
3) At this step, we assume the the Reseller has the additional IP available. To assign this additional IP to the User to use, go to:
Reseller Level -> List Users -> username -> Modify User username
In the row that says “Add Additional IP”, select the IP and click “save”. A free IP will not have the word “Shared” beside it.
After this point, the IP will now be assigning to the User, ready for them to use.
4) From here, the User must then assign it to their domain. To do this, login as the User and go to:
User Level -> Domain Setup -> domain.com
at the bottom of the page, you will see “Add another IP to domain.com”. Select your new IP, and click “Add IP”.
If there you need, remove the other IP from the domain’s IP list.
Please Note that it is normal that you will see the Apache page or the shared IP page in place of the domain for up to 4 hours.
This will be due to DNS propgation
One trick to remove the issue with propagation is to remove the old IP from the domain, but then temporarily re-add it to the domain *without* the option “Add dns records for this IP” enabled.
What this will do is add the old IP into the Apache configs (to handle the old cached IP), but will not have it in the dns, so once the old IP expires from the dns cache (at your ISP’s name servers), only the new IP will remain.
After about a day, you can remove the old IP again so it is not in the configs.