$50 free credit for new accounts - ends in

Claim $50

Setup

How do I connect my domain to web hosting?

Chatref Team3 min read / Updated June 16, 2026

Connecting your domain to web hosting usually means updating nameservers or DNS records at your domain registrar. The exact method depends on your host. This guide details both approaches and shows how Chatref’s custom actions and workspaces can help you automate and manage the domain setup process across your team.

Prerequisites for Domain Setup Hosting

Before you start, have these details ready:

  • Your domain name and registrar login credentials.
  • Your hosting provider’s nameservers (e.g., ns1.host.com, ns2.host.com) or the IP address for your hosting account.
  • Access to your hosting control panel (cPanel, Plesk, or custom dashboard).

If you manage multiple clients, ensure each has its own login – or use Chatref workspaces to keep their configurations separate.

Changing nameservers points your entire domain to the hosting provider, letting them handle all DNS records.

  1. Log in to your domain registrar (where you bought the domain).
  2. Find the DNS management or nameserver settings.
  3. Replace the existing nameservers with the ones provided by your web host.
  4. Save changes. Propagation can take up to 48 hours, but often starts in minutes.

This is the most common hosting domain connection for shared, VPS, and managed WordPress hosting.

Method 2: Connect Domain to Hosting with DNS Records

Some hosts require you to keep your nameservers but add an A record or CNAME pointing to their server.

  1. In your registrar’s DNS settings, locate the A record for @ (root domain) or www.
  2. Update its value to the IP address supplied by your host.
  3. If using a subdomain (e.g., app.yoursite.com), create a CNAME record pointing to the host’s designated domain.
  4. Save and allow time for propagation.

Use this method when you need to keep email or other services on your current nameservers while linking only the website.

Automate Domain Setup with Custom Actions

Manually logging into registrars and dashboards can slow you down – especially when handling many new customers. Chatref’s custom actions let you automate the repetitive parts right inside your support chat.

Build a custom action that:

  • Prompts the user for the domain name and hosting plan.
  • Validates the input and, with the user’s consent, triggers an API call to your backend to update nameservers or DNS records.
  • Sends a confirmation message once the domain setup hosting request is submitted.

This means a support agent (or the customer themselves through a self‑service widget) can initiate a full hosting domain connection without switching tabs, reducing typos and handling time.

Organize Multiple Domains with Workspaces

If you manage hosting for several clients or projects, Chatref workspaces help you keep each configuration tidy. Create a workspace per client or per brand, and invite team members to it. Inside each workspace, you can store:

  • The customer’s registrar details and hosting package.
  • Notes on the preferred linking method (nameserver vs A record).
  • Logs of custom action runs for that domain.

Workspaces prevent cross‑account mix‑ups and make it easy to audit who performed which domain setup hosting step and when.

FAQ

How to point domain to hosting?

Pointing a domain to hosting means updating the domain’s nameservers or adding an A record that directs visitors to your host’s server. In your domain registrar’s DNS management area, either change the nameservers to your host’s addresses or set an A record with the host’s IP. Propagation then makes the new settings live worldwide, usually within a few hours.

What are the steps to connect a domain?

The core steps to connect a domain to hosting:

  1. Gather your hosting provider’s nameservers or IP address.
  2. Log in to your domain registrar.
  3. Open the DNS management panel for your domain.
  4. If using nameservers: replace current values with your host’s nameservers. If using A record: set the @ or www record to your host’s IP.
  5. Create any additional CNAME records required by your host (e.g., for a staging subdomain).
  6. Save changes and wait for propagation.
  7. Verify by visiting your domain – it should load your hosted site.

Can I automate domain connection?

Yes. You can automate parts of the domain connection workflow with APIs and tools like Chatref’s custom actions. For instance, a custom action can collect domain name and hosting details through a chat interface, then call your registrar’s or hosting provider’s API to update DNS records programmatically. This eliminates manual copy‑paste and speeds up onboarding. Workspaces, meanwhile, help you organize automated jobs by client or team.

Put this into practice

Chatref answers your customers from your own content, day and night. Add it to your site and go live in minutes – free to start.

Get started