> For the complete documentation index, see [llms.txt](https://learn.sitecove.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.sitecove.com/how-to-guides/web-hosting/getting-started/how-to-connect-a-domain-to-your-hosting.md).

# How to Connect a Domain to Your Hosting

#### Introduction <a href="#introduction" id="introduction"></a>

Connecting your domain to your hosting account is a crucial step in getting your website online. Whether you’ve purchased your domain separately from your hosting provider or with the same company, the process involves configuring your domain’s DNS (Domain Name System) settings to point to your hosting server. This guide will walk you through the necessary steps to successfully connect your domain to your hosting.

#### Step 1: Determine Your Hosting Provider’s Nameservers <a href="#step-1-determine-your-hosting-providers-nameservers" id="step-1-determine-your-hosting-providers-nameservers"></a>

Nameservers are a crucial part of DNS that direct your domain to the correct web hosting server. When you purchase hosting, your provider will provide Nameserver details, usually via email or within the hosting dashboard.

Common nameserver formats:

* `ns1.yourhostingprovider.com`
* `ns2.yourhostingprovider.com`

To find your nameservers:

1. Log in to your hosting account.
2. Navigate to the DNS settings or domain management section.
3. Locate the nameservers assigned to your account.

#### Step 2: Access Your Domain Registrar’s Settings <a href="#step-2-access-your-domain-registrars-settings" id="step-2-access-your-domain-registrars-settings"></a>

If you purchased your domain separately from your hosting provider, you’ll need to update the nameservers at your domain registrar.

1. Log in to your domain registrar (e.g., GoDaddy, Namecheap, Google Domains).
2. Navigate to the domain management section.
3. Look for the option to update nameservers.

#### Step 3: Update Nameservers <a href="#step-3-update-nameservers" id="step-3-update-nameservers"></a>

1. In the nameserver settings section of your registrar’s dashboard, select the option to change or update nameservers.
2. Replace the existing nameservers with those provided by your hosting provider.
3. Save the changes and confirm the update if required.

#### Step 4: Verify DNS Propagation <a href="#step-4-verify-dns-propagation" id="step-4-verify-dns-propagation"></a>

DNS changes take time to propagate across the internet. This process can take anywhere from a few minutes to 48 hours.

To check if your domain is pointing correctly:

* Use online tools like [https://www.whatsmydns.net](https://www.whatsmydns.net/)
* Run the command `nslookup yourdomain.com` in the terminal (Windows) or use `dig yourdomain.com` (Mac/Linux)

#### Step 5: Add the Domain to Your Hosting Account <a href="#step-5-add-the-domain-to-your-hosting-account" id="step-5-add-the-domain-to-your-hosting-account"></a>

Once the domain is pointing to your hosting provider, you may need to add it to your hosting control panel.

For cPanel:

1. Log in to your cPanel account.
2. Navigate to **Addon Domains** or **Domain Manager**.
3. Enter your domain name and save the settings.

For Other Hosting Panels:

* The process varies, but look for “Add a Domain” or “Manage Domains” in your hosting dashboard.

#### Step 6: Configure Additional DNS Records (Optional) <a href="#step-6-configure-additional-dns-records-optional" id="step-6-configure-additional-dns-records-optional"></a>

If you are using additional services like email hosting, you may need to configure DNS records such as A records, MX records, or CNAME records.

* A records: Point to a specific IP Address.
* MX records: Direct email to the correct mail server.
* CNAME records: Create subdomains or point to external services.

#### Conclusion <a href="#conclusion" id="conclusion"></a>

By following these steps, you can successfully connect your domain to your hosting account, ensuring that visitors can access your website. If you encounter any issues, contact your hosting provider’s support team for assistance. With proper configuration, your website will be live and accessible in no time!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://learn.sitecove.com/how-to-guides/web-hosting/getting-started/how-to-connect-a-domain-to-your-hosting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
