keepcalculator

06 Numbers and Powers

DNS Settings in Web Hosting: What They Mean

Card No. 06·55318 · Updated · Standard formula, shown below

DNS settings in web hosting are the instructions that tell the internet where to find your website when someone types your domain name. You manage them through your domain registrar or hosting provider to connect your domain to your server, email, and other services. This article explains the key records, how to change them, and common pitfalls to avoid.

What Is DNS and Why Does It Matter?

DNS (Domain Name System) acts as the internet’s phonebook. When you enter example.com in a browser, your computer asks a DNS server for the numeric IP address (like 192.0.2.1) where that site actually lives. Without DNS, you’d have to memorize long numbers for every website.

In web hosting, your DNS settings control which server hosts your site, where your email goes, and how subdomains like blog.example.com are routed. If these settings are wrong, visitors may see an error, your email may bounce, or your domain might point to an old server.

Common DNS Record Types You’ll Encounter

Most hosting control panels let you manage several types of records. Here are the ones you’ll use most often:

  • A record – Points a domain or subdomain to an IPv4 address (e.g., example.com → 192.0.2.1).
  • AAAA record – Points to an IPv6 address (e.g., 2001:db8::1).
  • CNAME record – Aliases one domain to another (e.g., www → example.com).
  • MX record – Specifies the mail server that handles email for your domain (e.g., mail.example.com with a priority number).
  • TXT record – Holds text data for verification (SPF, DKIM, or domain ownership).
  • NS record – Declares which nameservers are authoritative for your domain.

Each record has a TTL (Time To Live) measured in seconds, which tells other DNS servers how long to cache the information before asking again.

How to Change Your DNS Settings

The exact steps depend on where your domain is registered and where your hosting is, but the general process is:

  1. Log in to your domain registrar (e.g., Namecheap, GoDaddy) or hosting provider’s control panel.
  2. Find the DNS management page. It might be called “DNS Settings,” “Zone Editor,” or “Manage DNS.”
  3. If you’re using your host’s nameservers, update the NS records to the ones your host provides (e.g., ns1.hostingcompany.com).
  4. If you’re keeping your registrar’s nameservers, add/edit the A, CNAME, MX, or TXT records directly.
  5. Save your changes. Note that DNS propagation can take anywhere from a few minutes to 48 hours.

If you’re moving to a new host, you’ll typically receive an email with the new nameserver addresses. Update them at your registrar, not at the old host.

Common DNS Problems and How to Fix Them

Even small mistakes can cause outages. Here are frequent issues:

  • Wrong A record – Your domain points to an old server IP. Check the IP your host gave you.
  • Missing www CNAME – Visitors using www get an error. Add a CNAME from www to your root domain.
  • Email not working – MX records are missing or point to the wrong server. Verify with your email provider.
  • Propagation delay – Changes take time to spread. Use a tool like dig or an online DNS checker to see if your records have updated.
  • TTL too long – If you set TTL to 86400 (24 hours) before a change, old values linger. Lower TTL to 300 or 600 before making changes.

If you’re unsure, most hosts offer a “DNS check” tool that compares your current records with what’s expected.

DNS vs. Nameservers: What’s the Difference?

People often confuse these terms. Nameservers are the DNS servers that hold your domain’s zone file. When you change nameservers, you’re telling the world, “Ask these servers for my DNS records.” DNS settings are the actual records (A, MX, etc.) stored on those nameservers.

If you change nameservers to your host’s, you’ll manage DNS in your host’s panel. If you keep your registrar’s nameservers, you’ll manage DNS there. You can’t edit both places simultaneously—only the authoritative nameservers matter.

How to Choose the Right DNS Configuration

Your choice depends on your setup:

  • Single website on one server – Use your host’s nameservers and let them handle A records automatically.
  • Email hosted elsewhere (e.g., Google Workspace) – Keep your registrar’s nameservers and add MX and TXT records manually.
  • Multiple services (CDN, subdomains) – Use a DNS provider like Cloudflare for advanced routing and faster propagation.
  • High-traffic sites – Consider a managed DNS service for redundancy and DDoS protection.

Always keep your DNS records organized. Delete obsolete records to avoid confusion.

DNS Costs and Safety Considerations

Most hosting plans include DNS management for free. Some third-party DNS providers offer premium tiers with extra features like health checks or geo-routing, but basic DNS is usually free.

Safety-wise, always enable two-factor authentication on your registrar and hosting accounts. DNS hijacking is a real threat—if an attacker gains access, they can redirect your visitors to malicious sites. Regularly audit your TXT records to ensure no unauthorized SPF or DKIM entries exist.

Also, be careful when copying records from a tutorial—one wrong character can break email or website. Double-check IPs and domain names.

Frequently Asked Questions

How long does DNS propagation take?

Typically 24–48 hours, but most changes propagate within a few hours. TTL values set by your previous DNS affect how long old records are cached. If you need faster updates, lower the TTL before making changes.

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

An A record points a domain directly to an IP address. A CNAME points a domain to another domain name (which then resolves to an IP). Use CNAME for subdomains like www to avoid duplicating IP changes.

Should I use my registrar’s DNS or my host’s?

It depends. If your hosting includes DNS management, using it often simplifies setup because records are pre-configured. If you need advanced features or have email elsewhere, you might prefer your registrar’s DNS or a third-party provider.

Why is my website showing an “ERR_NAME_NOT_RESOLVED” error?

This means the domain can’t be resolved to an IP. Check that your A record points to the correct server IP and that your nameservers are set correctly. Also, verify the domain isn’t expired.

Can I have multiple A records?

Yes, you can have multiple A records for round-robin load balancing. However, most websites only need one. If you’re using a CDN, they’ll provide a CNAME instead.

What does TTL mean in DNS?

TTL (Time to Live) is how long a DNS resolver caches a record before asking again. Lower TTL (e.g., 300 seconds) means changes propagate faster but increases query load. Higher TTL (e.g., 86400) reduces load but delays updates.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →