DNS is the internet's address book. When someone types yourdomain.in, their device asks DNS where to go, gets back an IP address, and connects. Your domain's "zone" is the list of answers. Each line in it is a record.

You'll mostly touch DNS when you connect email, verify your site with Google or another service, or add a subdomain. Here's what the records you'll meet actually do.

Where to edit DNS

That depends on your nameservers, the servers that hold your zone:

  • If your domain uses our nameservers (the ones in your welcome email), edit records in cPanel under Domains → Zone Editor.
  • If it uses Cloudflare's, edit in Cloudflare.
  • If it still uses your registrar's (GoDaddy, BigRock, Hostinger…), edit there.

Changing a record in the wrong place does nothing, which is the cause of a lot of "I added the record but it's not working" tickets.

A record: name → IP address

yourdomain.in.      A      203.0.113.10

Points a name to an IPv4 address. Your main domain's A record points to the server your website is on. There's also AAAA, which is the same thing for IPv6 addresses.

CNAME record: name → another name

www.yourdomain.in.  CNAME  yourdomain.in.
shop.yourdomain.in. CNAME  shops.myshopify.com.

Says "this name is an alias of that name; look that one up instead". Used for www, and when a service such as Shopify, Zoho or a landing-page tool asks you to point a subdomain at them.

A CNAME can't be used on the bare domain (yourdomain.in itself), only on subdomains.

MX record: where email goes

yourdomain.in.      MX  0   mail.yourdomain.in.

Tells other mail servers where to deliver email for @yourdomain.in. The number is a priority: lower is tried first. If you use Google Workspace or Zoho Mail instead of our email, they'll give you their MX records to use, and you remove ours. See Set up MX records to receive email.

TXT record: text for verification and email security

yourdomain.in.  TXT  "v=spf1 +a +mx include:_spf.google.com ~all"
yourdomain.in.  TXT  "google-site-verification=abc123..."

Free-form text that other services read. The common uses:

  • SPF, DKIM and DMARC, which stop your email going to spam. See Set up SPF, DKIM and DMARC.
  • Proving you own the domain to Google Search Console, Facebook, Microsoft 365 and others.

You can have many TXT records on the same name. The exception is SPF: only one SPF record per domain. If a service tells you to add one and you already have one, merge them into a single line.

NS record: who holds the zone

Lists the nameservers. You normally change these at your registrar, not in the zone itself. See Change your domain's nameservers.

TTL: how long answers are remembered

Every record has a TTL in seconds, for example 14400 (4 hours). Other servers cache the answer for that long. If you're about to move a site, lower the TTL to 300 a day before, so the change takes effect quickly. Raise it again afterwards.

Checking a record

To see what the world sees, use a free online checker such as dnschecker.org, or on a computer:

nslookup -type=mx yourdomain.in

Stuck on a step?

Customers can open a ticket from the client area and an engineer will do it with you. Not a customer yet? Write to help@hostingdon.com or call +91 98002 55199.