To point your domain or a subdomain to a service hosted elsewhere, add a CNAME or A record in your DNS settings. You do not need to move your hosting. This works for platforms such as Shopify, Wix, Zoho, Google Sites or any external service that gives you DNS values.
Choose a CNAME or an A record
The record type depends on the value the third-party service gives you.
- Use a CNAME when the service gives you a hostname, such as
shops.myshopify.com. - Use an A record when the service gives you an IP address.
Important: a CNAME only works on a subdomain, such as shop.example.com. You cannot use a CNAME on a root domain, such as example.com. For the root domain, use an A record.
Before you start
Check where your domain's DNS is managed. If it is managed at your registrar or at another DNS provider, make the change there instead. Your welcome email or the client area at my.hostking.host shows your account details.
Get the target value (hostname or IP address) from the new host before you begin.
If a record for the same name already exists, such as an A or TXT record, delete it first. A CNAME cannot share a name with other record types.
Add the record
cPanel
- Log in to your cPanel account.
- Go to Domains > Zone Editor.
- Find your domain and click Manage.
- Click + Add Record.
- Set Type to
CNAMEorA. - In Name, enter only the subdomain part, such as
shop. cPanel adds the domain automatically. For the root domain, use@with an A record. - In Record (or CNAME target), enter the hostname or IP address from the new host.
- Click Add A CNAME Record or Save Record, depending on the record type.
DirectAdmin
- Log in to DirectAdmin.
- Go to Account Manager > DNS Management.
- Select your domain.
- Click Add Record.
- Set Type to
CNAMEorA. - In Name, enter only the subdomain part, such as
shop. For the root domain, use@with an A record. - In Value, enter the hostname or IP address from the new host.
- Click Add.
For more on managing records, including editing and deleting them, see DNS management in the help centre.
How long the change takes
DNS changes can take anything from a few minutes to 24 hours. The time depends on the TTL (time to live), which is the number of seconds that other DNS servers keep a record before checking again.
Most changes with a TTL of 300 seconds (5 minutes) take effect within 5 to 15 minutes. A TTL of 3,600 seconds (1 hour) can take about an hour. A TTL of 86,400 seconds (24 hours) can take up to a day. The TTL that applies is the one set before your change.
Your existing website and email at Hostking are not affected. Only the record you changed points elsewhere.
Troubleshooting
- The old site still shows: the old record may still be cached. Wait for the TTL to expire, then clear your local DNS cache and check with a public DNS lookup tool.
- The record will not save: another record probably uses the same name, such as an A and a CNAME. Delete the conflicting record, then add the new one again.
If you are still stuck, contact support using live chat on the Hostking website. Live chat is available from 05:00 to 20:00 UTC, 7 days a week. You can also open a ticket from the client area.
