How to Connect a Domain to Your Website: DNS Records Explained Simply

Short answer

To connect a domain to a website, log in to the registrar's DNS settings and add the records your host gives you, usually an A record for the root domain and a CNAME record for www, or switch to the host's nameservers. Changes normally work within minutes to a few hours. Copy your email (MX) records first so email keeps working.

Connecting a domain feels technical because the words are unfamiliar, but there are only three ideas to learn. Once you know them, the same steps work for every host and registrar.

The three ideas

  • Domain registrar. The company where you bought yourbusiness.in. It stores your DNS settings, or hands them to another provider.
  • DNS records. A list of instructions: "this name goes to that server". Your hosting provider tells you what to add.
  • Nameservers. The servers that hold your DNS list. You either edit records at your registrar, or you change the nameservers to your host's so that the host manages them.

The records you will meet

RecordWhat it doesExample
APoints a name to an IPv4 address@ points to the address your host gives you
CNAMEPoints a name to another namewww points to your host's target name
MXSays where your email is deliveredProvided by Google Workspace or your mail host
TXTVerification and email security (SPF, DKIM, DMARC)Added when verifying a domain or setting up email

In DNS, @ means the bare domain itself (yourbusiness.in), and www means www.yourbusiness.in.

Method 1: Add records at your registrar (safest)

  1. Add the domain inside your host's dashboard (for Vercel, Settings then Domains). The host shows the exact records it wants.
  2. Log in to your registrar and open DNS or Manage DNS for the domain.
  3. Delete any old A or CNAME record for @ and www that points to a parking page.
  4. Add the records your host listed.
  5. Save, return to the host and click Verify or Refresh.

Because you are changing only the website records, your email records stay exactly as they were.

Method 2: Change nameservers to your host

Some hosts ask you to use their nameservers. This hands over the whole DNS list. Before you change nameservers, copy every existing record, especially MX and TXT, into the new DNS provider. If you forget, email delivery can stop within minutes of the switch.

Registrar quick guide

  • GoDaddy: My Products, then Domains, then DNS next to your domain, then Add record.
  • Hostinger: Domains, then Manage, then DNS / Nameservers.
  • Namecheap: Domain List, then Manage, then Advanced DNS.

The labels shift from year to year, so search the registrar's dashboard for "DNS".

How long does it take?

Usually from a few minutes to a few hours. The commonly quoted "up to 48 hours" is the outer limit, because each internet provider caches old answers for a while. If it still does not work after a day, the usual causes are a stale record you forgot to delete, a typo in a record, or the wrong version (with or without www) being checked.

Make HTTPS and www behave

Choose one primary version, either yourbusiness.in or www.yourbusiness.in, and redirect the other to it. Good hosts issue a free SSL certificate automatically once the records resolve. Having both versions open as separate sites splits your search ranking and confuses analytics.

Protect your email while you do this

Business email depends on MX records, plus SPF, DKIM and DMARC TXT records so your messages are not marked as spam. Never delete these while editing website records. If you move to Google Workspace or another provider, follow its checklist and test by sending a message to an outside address.

Checking your work

Open the site in a private browser window on your phone's mobile data, test both versions of the address and check that the padlock appears. Then add the domain to Google Search Console and submit your sitemap.

If you would prefer this done for you, we configure domain, DNS, SSL and business email as part of web development, in accounts you own.

FAQ

Frequently asked questions

How do I point my domain to my website?

Add the A and CNAME records that your host gives you in your registrar's DNS settings, or switch to the host's nameservers, then wait for the records to be detected.

What is the difference between an A record and a CNAME?

An A record maps a name to an IP address. A CNAME maps a name to another name. Hosts typically use an A record for the root domain and a CNAME for www.

Why is my domain not working after I added the records?

Common causes are an old record still present, a typo, a delay while DNS updates, or checking a version of the address you did not configure. Remove stale records and test again after an hour.

Will connecting my domain break my email?

Not if you only change the website records. Changing nameservers can break email unless you copy the MX and TXT records first.

Do I need to change nameservers?

Not usually. Adding records at the registrar is simpler and safer. Change nameservers only if your host requires it.

How long does DNS propagation take?

Minutes to a few hours in most cases, and up to 48 hours at the longest.

Want this done properly for your business? Tell us what you need.