To connect a domain to cPanel hosting, direct its DNS to the hosting service, then associate the domain with the correct cPanel account. The right approach depends on whether you want to manage DNS through nameservers or keep DNS where it is and edit records. This guide explains how to connect a domain to web hosting in cPanel, with practical steps for each method.
A domain and a hosting account are separate parts of a website setup. DNS directs a hostname to a server, while cPanel connects that hostname to a website on the server. Understanding the difference helps you choose the right configuration and identify where to troubleshoot if the domain doesn’t reach the intended site.
This guide explains how addon domains, subdomains and www hostnames relate, and how to connect a domain using nameservers or A and CNAME records. It also covers email and HTTPS, so you can plan the setup around the services your domain needs. Follow the steps that match your DNS arrangement and hosting configuration.
Key Takeaways
- Choose between changing nameservers and editing DNS records, depending on where you want DNS managed.
- Allow up to 48 hours for nameserver changes to take effect, and understand why your site may not appear straight away.
- In cPanel, addon domains and subdomains let you host additional sites and organise separate areas of a website.
- Know how the primary domain’s www hostname relates to its website content and when an alias may be useful.
- For an A-record setup, point both the root domain and www hostname to the cPanel IP address; changes can take up to 4 hours to take effect.
Addon domains and their associated subdomains
- Decide whether the new hostname needs its own website. An addon domain lets you host a separate website within the same cPanel account. For example, you could keep a main business site and a project site in one account. Assign the new site a distinct document root so its files stay separate from the primary website.
- Add the domain in cPanel’s domain management area, then assign its document root. This folder is where the website’s files belong. For example, you might use a separate folder for second.example rather than placing its files alongside the primary site. The domain must be registered before cPanel can associate it with hosting; domain name registration provides a way to establish a name for a separate site.
- Understand the subdomain structure cPanel uses for an addon domain. cPanel creates an internal subdomain under the account’s primary domain to manage the additional site. The addon domain still works as a separate hostname on its own virtual host. For example, an account with main.example can host second.example using cPanel’s internal subdomain structure.
- Choose a regular subdomain for a separate area beneath an existing domain. A cPanel subdomain shares the domain-name root of the primary domain or a parked domain, but exists on a separate virtual host. For example, shop.example can have its own website area. cPanel automatically creates the equivalent www subdomain, www.shop.example, when you add the subdomain.
- Review the hostnames associated with each virtual host before adding aliases. The hostnames and SSL certificates associated with an addon domain depend on your cPanel configuration and certificate provider. Check your AutoSSL provider’s domain and rate limits before adding aliases. These details can affect how you organise hostnames and certificates across the account.
- Keep each domain’s role and files clear as your account grows. Addon domains and subdomains let you host multiple websites in one cPanel account, but each hostname needs to lead to the intended content. Use a separate document root for each separate site. Reserve aliases for hostnames that should serve the same site, not independent website files.
DNS propagation time
- Record which DNS setting you changed and when you saved it. Propagation is the process of updated DNS information becoming available through resolvers. A resolver uses the DNS information it has retrieved to answer requests for a hostname. A change log helps you distinguish a new update from an earlier one, especially if you edit several records during setup.
- Use the correct timeframe for the record type. Nameserver changes can take up to 48 hours to take effect. A-record changes can take up to 4 hours. These apply to different DNS changes, so don’t assume an A-record edit changes nameservers. Write down whether you changed the domain’s nameservers or an individual hostname’s record.
- Expect DNS results to vary while an update is in progress. A resolver with the previous DNS answer may keep returning it until it refreshes its information, while another may already return the new destination. For example, the same domain could appear to reach different hosting destinations from separate networks as their DNS information updates.
- Test from more than one connection if results seem inconsistent. Compare the domain using your home internet connection and a mobile connection, then note whether each shows the same site. Different results can indicate an update still in progress. Record what each connection displays and when you tested it, rather than repeatedly changing records.
- Check which exact hostname behaves differently. The root domain and a hostname such as www.example.com can have separate DNS records. If one loads the expected site and the other doesn’t, record the difference. This narrows the investigation to the affected hostname instead of suggesting that every DNS setting is incorrect.
- Review the saved destination before editing a record again. Compare the current nameserver values or A-record address with the values intended for the hosting account. Another change can make it harder to tell which update produced a particular result. If the values are correct, allow the applicable propagation period to pass before drawing conclusions.
- Keep cPanel configured for the final DNS destination. Once the hostname reaches the intended server, check that the website responds as expected. If DNS appears updated but the wrong page loads, the issue may be the hostname’s cPanel association or website content, rather than propagation. A timestamped change record makes the cause easier to investigate.
Pointing domain name servers to cPanel
- Find the server details before changing your domain settings. In cPanel’s main menu, look for the server IP address under “Shared IP Address”. Use the nameserver values supplied in your hosting account details, as they are specific to the hosting service. Don’t substitute the IP address for nameservers: they serve different purposes.
- Prepare the website before directing the domain to it. Upload the files to the correct cPanel document root, then confirm the intended homepage file is there. Knowing how to connect a domain to web hosting in cPanel also means understanding that DNS directs visitors to a server, while the document root serves the website files. The domain can point to the server, but the site won’t display correctly if its files haven’t been uploaded.
- Replace the current nameservers in your domain registrar’s settings. Enter each required nameserver exactly as supplied, then save the change. This directs DNS management to the hosting service. Avoid editing unrelated domain settings at the same time, as that can make troubleshooting harder.
- Keep a record of the original nameservers and the new values. If the domain doesn’t reach the intended cPanel account, compare the saved entries character by character. A typo, missing nameserver or old value can send DNS queries to the wrong place. Also confirm the domain was added to the correct hosting account.
- Configure SSL before expecting secure HTTPS access. The certificate must cover the domain visitors use, including www if that hostname is required. Once a suitable certificate is installed for the domain, test the HTTPS version and confirm it loads the intended website.
- Keep email with your current provider by preserving its mail-routing records. When you change nameservers, the new DNS zone becomes responsible for records such as MX records. Add the current provider’s required mail records to that zone before switching. Otherwise, incoming messages may stop reaching the existing mail service.
- Troubleshoot one setting at a time if the connection fails. First, check for misspelled nameservers and confirm the domain is attached to the correct cPanel account. Next, confirm the website files are in the assigned document root. If the root domain works but www doesn’t, review the www hostname’s DNS configuration separately.
- Test the domain and email as separate services after the change. Open the root domain and its www version, then send a test message to an address using the domain. If the site loads but email fails, review the MX records rather than changing the website’s document root. If HTTPS fails, confirm the certificate covers the hostname you’re testing. These checks help you connect a domain to web hosting in cPanel without mixing website, email and certificate settings.

Primary domains and www hostnames in cPanel
Each cPanel account has a primary domain and its equivalent www hostname. Both hostnames retrieve the same website content.
-
Add a primary or addon domain
Choose the primary domain for the cPanel account before adding other sites. Each account has at least one web virtual host containing its primary domain and equivalent www hostname. For example, example.com can be the primary domain. Add another hostname as an addon domain when it needs a separate website and virtual host. An addon domain doesn’t replace the account’s primary domain.
-
Set up www hostnames
Keep the www version associated with the primary domain’s website. For example, example.com and www.example.com retrieve the same content through the account’s virtual host, so you don’t need separate website files for each hostname. Test both versions after connecting the domain to make sure each resolves to the intended hosting account.
- Use a cPanel alias when another hostname should show the primary site. An alias associates a separate hostname with the primary domain, so requests to either name receive the same content. For example, adding example.net as an alias for example.com serves the primary site through both names. Choose an alias for shared content, not a separate website with its own files.
- Decide what each hostname is for before assigning it. Use the primary domain for the account’s main website, an addon domain for another site, and an alias when multiple names should display the same content. For example, a business might use example.com for its main site and an addon domain for a separate project. This choice determines which virtual host and website content will answer requests.
- Review how each hostname is assigned in cPanel. Confirm the primary domain is the intended account name, then check whether each additional name is an addon domain or an alias. These roles aren’t interchangeable: an addon domain is a separate hostname on its own virtual host, while an alias points to the primary domain’s content. Classifying them correctly helps prevent visitors from reaching the wrong site.
- Test the primary domain and www hostname separately in a browser. For example.com, also open www.example.com and compare the pages. Both should retrieve the same content for the primary virtual host. If one hostname displays another site or an error, review its DNS destination and cPanel association before changing website files.
Connect a Domain to cPanel via DNS A and CNAME Records
- Choose this method when DNS stays with your current provider. DNS translates a hostname into an address that a computer can use to reach a server. An A record points a hostname directly to an IPv4 address. A CNAME record points one hostname to another hostname instead. For cPanel hosting, you’ll need the server’s IP address and access to the domain’s DNS settings.
- Find the cPanel server IP address before editing DNS records. In cPanel’s main menu, look for “Shared IP Address”. Copy the value carefully and use it as the A-record destination. Don’t enter a nameserver in an A-record value: nameservers identify where DNS is managed, while an A record directs a hostname to an IP address.
- Create or update an A record for the root domain. Depending on the DNS provider’s interface, the hostname may appear as @ or as the domain itself. Set its value to the cPanel IP address. For example, an A record for example.com should lead to the IP address shown in cPanel, not a folder name or website URL.
- Point the www hostname to the same website. One option is an A record for www using the cPanel IP address. Alternatively, create a CNAME for www pointing to the root hostname, such as example.com. Use one record type for www, not both. A CNAME value must be a hostname, not the server’s numeric IP address.
- Review existing records before saving changes. Remove or replace conflicting A or CNAME records for the same hostname. For example, an old A record for www can send visitors to a previous server even after the root domain points to cPanel. Leave unrelated records alone, especially mail records, unless you intend to change email routing.
- Save the DNS zone, then test both hostnames separately. Open example.com and www.example.com to confirm each reaches the intended website. A computer resolves each hostname to an IP address before requesting website content. If one version fails, inspect that hostname’s record and compare its destination with cPanel’s “Shared IP Address”.
- Check the cPanel domain configuration if DNS points to the right place but the wrong page appears. The hostname must be associated with the correct account and website files. An A record alone can’t select the right document root. Keep the DNS destination, cPanel domain entry and website files aligned for both the root and www hostnames.
Twisted Servers: Domain Name Registration
Twisted Servers offers Domain Name Registration if you need a domain for a website or online project. Registering the name is a practical first step before connecting it to cPanel hosting. Then configure its DNS to point to the hosting service, using nameservers or DNS records as described above.
If you already have a domain, the same DNS principles apply: keep access to its current registrar account, then update the relevant settings there. For a new domain, domain name registration gives you a way to secure a name for your project. You can also explore Game Server Hosting, VPS Hosting or Dedicated Server Hosting for other hosting needs.
To discuss domain registration, contact Twisted Servers.
Plan the next stage of your online project
Once your domain is connected, consider what you’ll need for the next step. A growing website, an online community and a multiplayer server can each have different hosting needs. Knowing how to connect a domain to web hosting in cPanel gives you a practical starting point for managing your setup as your project develops.
Twisted Servers offers Game Server Hosting, VPS Hosting and Dedicated Server Hosting. These options serve different needs, from hosting a game server to running services on a virtual or dedicated server. Choose the option that fits your project, and keep your domain setup aligned with it.
If you’d like to discuss your hosting needs, contact Twisted Servers. Your next step can be clear and manageable.
Frequently Asked Questions
How do I point a domain to cPanel hosting by changing nameservers?
Replace the domain’s current nameservers with the exact values supplied for your cPanel hosting service. Make the change in the registrar’s domain settings, then confirm the domain is added to the correct cPanel account. Note the previous values, and don’t enter the server IP address in a nameserver field. Nameservers and IP addresses have different roles in directing domain traffic.
How long do domain DNS changes take to propagate?
Nameserver changes can take up to 48 hours to take effect, while changes to A records can take up to 4 hours. The relevant timeframe depends on which setting you changed. During the update, different networks may show different results. To narrow down an issue, test the root domain and its www hostname separately, and note which one still displays the previous destination.
How do I connect an Australian domain ending in .au to cPanel hosting?
Connect a .au domain using the same DNS options as other domain endings: replace its nameservers or point its DNS records to the cPanel server. Make sure the domain is also added to the cPanel account, then test the root hostname and www version. If you use domain-based email, preserve the required mail records in the active DNS zone so messages keep reaching the right service.
How do I connect a domain registered with a different company to cPanel hosting?
You can keep your domain registered with its current company and connect it to cPanel by changing DNS settings in that registrar’s account. Enter the hosting service’s nameservers or edit the domain’s DNS records to point to the cPanel IP address. Keep access to the registrar account for future DNS changes, renewals and domain management. Registration and hosting are separate functions.
Disclaimer
Game titles, trademarks, logos and related assets are the property of their respective owners. Twisted Servers is an independent hosting provider and is not affiliated with or endorsed by the developers or publishers of the games mentioned unless otherwise stated. Information is provided as a general guide and may change as games, software and hosting services are updated.
