In general, allow for 24 hours for DNS to fully propagate. This window may be reduced to 60 seconds or less following proper procedure. You need a fair understanding of DNS records and roughly 5 days to complete the process with minimal downtime.
Steps
- Setup the account with Lithium Hosting, but keep your account opened with your old hosting provider.
- If you have access to modify DNS TTL (time-to-live) information on your old host, set the values for all records to 60 seconds and skip to step 4.
- If you do not have access to modify DNS TTL values, then you will need to replicate the DNS on your old host. This is comprised of the A records to your Web site and mail server, and MX records for handling e-mail delivery. You may lookup the information using the common program dig or through a Web-based interface like “DNS Records“.
- First lookup the
A
record for your domain name, i.e.yourdomain
.com
. Next, lookup the value for the www subdomain, i.e.www.yourdomain.com
. Copy down the IP addresses for these two records and replace the DNS records in DNS > DNS Manager with the old values. Change the TTL field from the default value (typically86400
seconds – 1 day) to60
(60 seconds).- Optionally, if you have any subdomains, e.g.
mail.yourdomain.com
orforums.yourdomain.com
, then look up the A records associated with these hosts and add them to the DNS Manager. For the sake of brevity, you may use the wildcardA
record named*
. This maps every subdomain not explicitly named to the IP address defined in DNS Manager. - Change the nameservers to
ns1.lithiumdns.net
andns2.lithiumdns.net
through the registrar of your domain, then wait 48 hours for nameserver changes to propagate and the new TTL values to appear.
- Optionally, if you have any subdomains, e.g.
- Login to LiPanel and copy down the IP address listed under Account > Summary > General > IP Address. This is the IP address of your account on Lithium Hosting. The mail server and Web server addresses both point to this address.
- Visit DNS > DNS Manager 2-3 days later and change the TTL values back to their default value of
86400
seconds and replace all occurrences of the old IP address with the value listed in LiPanel. Once the changes have been made to DNS Manager you will be accessing your account with Lithium Hosting as will everyone else. The 24 hour window has been reduced to 60 seconds, which in turn mitigates the inevitable downtime of switching hosting providers. Make sure you have anything setup properly on the server before switching over, because your site will be live at that time.
Example
Let’s change yourdomain.com hosted elsewhere!
Information is taken from network-tools.com:
- yourdomain.com, www.yourdomain.com: IP address is 4.2.12.250
- apnscp.com MX record: mail.yourdomain.com with a priority of 10
- mail.yourdomain.com: IP address is 4.2.12.250
Given that information, perform these steps within the DNS Manager :
- Change the www.yourdomain.com and yourdomain.com A records to 4.2.12.250
- Set TTL value for both A records to 60
- Change the yourdomain.com MX record to mail.yourdomain.com
- If an A record named mail.yourdomain.com does not exist, create it with the IP address 4.2.12.250 otherwise replace the value
- Change nameservers to ns1.lithiumdns.net and ns2.lithiumdns.net
- After 48 hours change all occurrences of 4.2.12.250 to the account’s IP address – 64.22.68.61 in this case