What Is DNS and Why Should You Care?
Every time someone types your website address into a browser, the Domain Name System (DNS) is quietly doing the heavy lifting — translating that human-friendly domain name into an IP address that servers understand. Think of it as the internet's phone book.
When you purchase a domain from a registrar like Namecheap, GoDaddy, Google Domains, or a local provider, that registrar manages your domain's name servers by default. Those name servers are the authoritative source for your domain's DNS records. Getting them configured correctly is the difference between a site that loads flawlessly and one that leaves visitors staring at an error page.
For businesses here in Ghana and across Africa increasingly going digital, understanding this process isn't just a technical nicety — it's a business necessity.
Understanding Name Servers vs. DNS Records
Before diving into the steps, let's clarify two things people often confuse:
- Name Servers tell the internet where to look for your domain's DNS information. They are typically formatted like
ns1.yourprovider.comandns2.yourprovider.com. - DNS Records are the actual instructions stored at those name servers — directing traffic to your web host, email provider, and other services.
When you "set DNS on your domain provider's name servers," you're either pointing your domain to a different set of name servers (like those provided by Cloudflare or your hosting company), or you're editing DNS records directly within your registrar's own name server dashboard.
Both scenarios are common. Let's walk through both.
Scenario 1: Changing Your Name Servers
This is typically done when your hosting provider (like AWS, Cloudflare, or a cPanel host) wants to manage your DNS for you.
Step 1: Get the Name Server Details from Your Host
Log into your hosting control panel and locate the assigned name servers. They'll usually look something like:
ns1.hostingprovider.comns2.hostingprovider.com
Copy these carefully — a typo here will break your entire domain.
Step 2: Log Into Your Domain Registrar
Head to the registrar where you purchased your domain. Navigate to your domain management or domain list section.
Step 3: Locate the Name Server Settings
Look for a section labeled Name Servers, DNS Settings, or Manage DNS. Most registrars place this under the domain's settings panel.
Step 4: Replace the Default Name Servers
Switch from the default name servers to the ones provided by your hosting provider. Save the changes. Most registrars will warn you that propagation takes time — and they're right.
DNS propagation can take anywhere from a few minutes to 48 hours, though it typically completes within a few hours globally.
Scenario 2: Editing DNS Records Within Your Registrar's Dashboard
If you're keeping your registrar's default name servers and just need to point your domain to a server, email service, or verify ownership, you'll be editing DNS records directly.
The Core DNS Record Types You'll Use
| Record Type | Purpose |
|---|---|
| A Record | Points your domain to an IPv4 address |
| AAAA Record | Points your domain to an IPv6 address |
| CNAME Record | Creates an alias from one domain to another |
| MX Record | Directs email to your mail server |
| TXT Record | Used for verification (Google, SPF, DKIM) |
Step-by-Step: Adding an A Record
- Log into your registrar and open your domain's DNS management panel.
- Look for an option to Add Record or Add New DNS Record.
- Select A as the record type.
- In the Host or Name field, enter
@(which represents your root domain) or a subdomain likewww. - In the Value or Points To field, enter the IP address of your web server.
- Set the TTL (Time to Live) — 3600 seconds (1 hour) is a safe default.
- Save the record.
Repeat similar steps for other record types as needed.
Common Mistakes to Avoid
Deleting records without backing them up. Before making any changes, take a screenshot or note down your existing DNS records. Accidentally removing an MX record means your email stops working instantly.
Forgetting the www subdomain. Many developers set an A record for @ (root domain) but forget to add one for www. Add a CNAME record pointing www to your root domain, or a separate A record.
Not waiting for propagation. If your site isn't loading immediately after changes, don't panic and start making more edits. Use tools like dnschecker.org to monitor propagation progress across different regions.
Setting TTL too high. If you're planning changes soon, temporarily lower your TTL to 300 seconds (5 minutes) a day before, so changes propagate faster.
A Note on Cloudflare as a Middle Layer
Many professionals in the tech space — including teams here at Code!nk — recommend pointing your name servers to Cloudflare, even if your domain is registered elsewhere. Cloudflare provides free DNS management with extremely fast propagation, DDoS protection, and caching benefits. Once you point your registrar's name servers to Cloudflare's (vera.ns.cloudflare.com, for example), all DNS editing happens inside Cloudflare's dashboard.
It's an extra step upfront that pays dividends in performance and security.
Final Thoughts
DNS configuration is one of those skills that feels intimidating the first time and completely routine by the third. The key is understanding that you're essentially drawing a map — telling the internet where your domain's resources live. Get the name servers right, manage your records carefully, and always give propagation the time it needs.
Whether you're launching a new product, migrating a website, or connecting a custom domain to your email service, mastering DNS puts you in full control of your online infrastructure.
Source
ICANN — "What Is DNS?" https://www.icann.org/resources/pages/what-2012-02-25-en




