How to Connect a Domain to Your Website: DNS Records Explained Simply
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.
- The three ideas
- The records you will meet
- Method 1: Add records at your registrar (safest)
- Method 2: Change nameservers to your host
- Registrar quick guide
- How long does it take?
- Make HTTPS and www behave
- Protect your email while you do this
- Checking your work
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
| Record | What it does | Example |
|---|---|---|
| A | Points a name to an IPv4 address | @ points to the address your host gives you |
| CNAME | Points a name to another name | www points to your host's target name |
| MX | Says where your email is delivered | Provided by Google Workspace or your mail host |
| TXT | Verification 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)
- Add the domain inside your host's dashboard (for Vercel, Settings then Domains). The host shows the exact records it wants.
- Log in to your registrar and open DNS or Manage DNS for the domain.
- Delete any old A or CNAME record for
@andwwwthat points to a parking page. - Add the records your host listed.
- 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.