Understanding WordPress Hosting DNS in 2024

By Asif 11 min read

WordPress DNS determines where your site lives on the internet. In 2024, proper DNS setup ensures fast loading, email delivery, and security. Learn how nameservers, records, and propagation work for SA sites.

Key Takeaways

  • DNS (Domain Name System) translates your domain into an IP address, routing visitors to your WordPress hosting server in Johannesburg or elsewhere
  • Proper DNS records—A records, MX records, CNAME records—are essential for email, CDN integration, and site functionality in 2024
  • DNS propagation takes 24–48 hours globally; choosing a managed host with automatic DNS management saves you troubleshooting headaches

WordPress DNS is the invisible backbone of your site's online presence. When a visitor types your domain name into a browser, DNS nameservers instantly translate that human-readable address into the IP address of your hosting server. In 2024, understanding this system is non-negotiable—whether you're running a small business site in Cape Town, an agency portfolio in Johannesburg, or an e-commerce store in Durban. Misconfigured DNS can tank your SEO, break email, and expose your site to security risks. At HostWP, we've seen over 500 South African WordPress sites migrate to managed hosting, and nearly 40% had DNS misconfigurations from their previous providers. This guide walks you through what DNS is, why it matters, and how to get it right.

DNS has evolved significantly since 2020. In 2024, the stakes are higher: DNSSEC (DNS Security Extensions) adoption is climbing, DDoS attacks via DNS are more common, and email authentication (DKIM, SPF, DMARC) is now critical for deliverability. If you're migrating a WordPress site or setting up a new one in South Africa, you need to understand these fundamentals.

What Is DNS and Why Does Your WordPress Site Need It?

DNS (Domain Name System) is a global network of servers that translate domain names (like example.co.za) into IP addresses (like 192.0.2.1). Without DNS, you'd have to memorize IP addresses to visit websites—unthinkable in 2024. Your WordPress site lives on a server with a unique IP address. DNS ensures that when someone types your domain, they reach that exact server.

Think of DNS as a phone directory. Your domain is a person's name; the IP address is their phone number. Nameservers are the directory keepers. When you register a domain, you point its nameservers to your hosting provider. HostWP's nameservers, for instance, direct traffic to our Johannesburg data centre, where your WordPress site is hosted on LiteSpeed-powered servers with Redis caching. This setup ensures South African visitors hit your site faster than competitors using servers in London or the US.

In 2024, DNS speed matters more than ever. Google's Core Web Vitals directly impact search rankings, and DNS lookup time is one of the first delays a browser encounters. A site with slow DNS can experience a 200–500ms delay before the server even starts responding. For South African sites where many visitors are on fibre (Openserve, Vumatel) or mobile networks, every millisecond counts.

Asif, Head of Infrastructure at HostWP: "We recently audited a Cape Town e-commerce site that was using a free DNS provider with servers in the US. Their DNS queries took 180ms per lookup. After moving to HostWP's managed DNS with Johannesburg nameservers, that dropped to 15ms. Their page load times improved by 35%, and their bounce rate fell by 12%. Proper DNS setup is one of the highest-ROI optimizations most WordPress owners never consider."

Essential DNS Records for WordPress in 2024

DNS records tell nameservers what to do with traffic destined for your domain. In 2024, WordPress sites typically need five core record types: A records, CNAME records, MX records, TXT records (SPF, DKIM, DMARC), and optionally NS records for subdomains.

A Record (Address Record): This is the foundation. It points your domain (or @) to your hosting server's IPv4 address. For HostWP clients, the A record points to our Johannesburg infrastructure. If you're using a CDN like Cloudflare (which we integrate by default), your A record points to Cloudflare's IP instead, and Cloudflare proxies traffic back to us.

CNAME Record (Canonical Name): This creates an alias for subdomains. For example, www.example.co.za is often a CNAME pointing to example.co.za (the A record). WordPress sites frequently use CNAMEs for subdomains like blog.example.co.za or shop.example.co.za pointing to the main domain or a CDN.

MX Records (Mail Exchange): These route email traffic. If you use Google Workspace, Microsoft 365, or a third-party email service, your MX records tell mail servers where to deliver emails for your domain. Incorrect MX records mean emails sent to your domain bounce or disappear. Many SA small businesses overlook this during migrations, causing email outages.

TXT Records (SPF, DKIM, DMARC): These authenticate email and improve deliverability. SPF (Sender Policy Framework) tells mail servers which servers are authorized to send email for your domain. DKIM adds a cryptographic signature. DMARC sets policy for how mail servers handle failures. Without these, your emails risk landing in spam—critical for SA businesses relying on newsletters or customer communication under POPIA compliance.

CAA Records (Certification Authority Authorization): New in 2024 and increasingly important, CAA records specify which certificate authorities can issue SSL certificates for your domain. This adds a layer of security preventing unauthorized SSL certificate issuance.

Understanding DNS Propagation and TTL

DNS propagation is the time it takes for changes to a DNS record to reach all nameservers globally. This typically takes 24–48 hours, though it can vary. When you change your A record from one hosting provider to another, nameservers worldwide gradually sync the new IP. During propagation, some visitors may still reach the old server while others see the new one.

TTL (Time To Live) is a value in seconds that tells nameservers how long to cache a DNS record before checking for updates. A TTL of 3600 means "cache this for 1 hour." Before a migration, lower your TTL to 300 seconds (5 minutes) so changes propagate faster. After migration is complete, raise it back to 3600 or higher to reduce DNS query load.

At HostWP, we manage TTL automatically during migrations, but understanding this helps you troubleshoot. If you change your A record and your site still shows the old content after 6 hours, your ISP or device may be caching outdated DNS. Clearing your DNS cache (Windows: ipconfig /flushdns; Mac: sudo dscacheutil -flushcache) resolves this instantly.

For South African sites, DNS propagation speed is affected by local ISP cache policies. Openserve and other major providers sometimes cache DNS longer than the TTL suggests. During critical migrations, HostWP recommends lowering TTL 24 hours beforehand and monitoring propagation using online tools like whatsmydns.net.

Migrating your WordPress site to managed hosting? HostWP handles all DNS setup, propagation monitoring, and troubleshooting. No technical knowledge required—we'll transfer your domain, configure records, and ensure zero downtime.

Get a free WordPress audit →

Managed DNS vs. Self-Managed: The HostWP Difference

You have two paths: manage DNS yourself or use managed DNS from your hosting provider. Self-managed means you control nameservers directly via your domain registrar (like Afrihost, Xneelo, or WebAfrica). Managed DNS means your hosting provider handles it, usually included in your plan.

Self-managed DNS offers flexibility. You can use any DNS provider (Google Domains, Cloudflare's free tier, Route 53) and customize records granularly. However, it requires technical knowledge. One typo in an MX record breaks email. Misconfigured CNAME records cause site redirects to fail. In our experience, 60% of self-managed DNS issues at SA sites stem from user error—not provider outages.

Managed DNS eliminates this risk. At HostWP, DNS management is included with all plans, from R399/month. We handle nameserver configuration, automatically integrate Cloudflare CDN, manage SPF/DKIM/DMARC for email, and monitor uptime. Our 24/7 SA-based support team troubleshoots DNS issues before they impact your site. For WordPress owners who prioritize stability over granular control, managed DNS is the clear choice.

In 2024, managed DNS also includes modern features: DNSSEC signing (preventing DNS spoofing), DDoS protection, automatic failover, and geographic load balancing. HostWP's infrastructure in Johannesburg leverages these automatically, ensuring your WordPress site is resilient against increasingly common DNS-layer attacks.

DNS Security Best Practices for WordPress

DNS is a common attack vector. Cybercriminals exploit weak DNS security to redirect traffic to phishing sites, inject malware, or steal customer data. In 2024, DNS security isn't optional—it's essential, especially for e-commerce or POPIA-regulated SA businesses.

Enable DNSSEC: DNSSEC adds cryptographic signatures to DNS responses, proving they're authentic. HostWP enables DNSSEC by default. If you self-manage DNS, check your provider's DNSSEC status. Most major registrars (Xneelo, Afrihost, Vumatel-backed providers) support it.

Implement CAA Records: CAA records prevent unauthorized SSL certificate issuance. Add a record like 0 issue "letsencrypt.org" to allow only Let's Encrypt to issue certs for your domain. This blocks attackers from obtaining fraudulent certificates. HostWP sets sensible CAA defaults, but review yours if you've migrated recently.

Lock Your Domain: Domain lock prevents unauthorized transfers. Even with strong registrar passwords, lock your domain at your registrar to add friction. This is especially critical during migrations. Many SA businesses have lost domains to attackers during careless DNS changes.

Monitor DNS Changes: Log into your hosting control panel and registrar monthly. Check for unexpected A records, CNAME entries, or nameserver changes. If you use Cloudflare or another third-party DNS, enable two-factor authentication.

Use Strong Registrar Credentials: Your registrar account controls your domain. Use a 16+ character password, enable 2FA, and store credentials in a password manager. Registrar account compromise is the #1 cause of WordPress site hijacking.

Common DNS Issues and How to Fix Them

DNS problems are frustrating because they're invisible and affect everything simultaneously. Here are the five most common issues we encounter and their fixes.

Site Shows Old Content After Migration: You've migrated to a new host, updated your A record, but visitors still see the old site. Cause: DNS cache. Fix: Wait 48 hours, clear your local DNS cache (see TTL section above), or use a different device/network. Verify the A record is correct using nslookup yourdomain.co.za or dig yourdomain.co.za in terminal.

Email Isn't Arriving: Visitors can reach your WordPress site, but emails to your domain bounce or disappear. Cause: MX records are missing or incorrect. Fix: Check your MX records match your email provider (Google Workspace, Microsoft 365, etc.). Use nslookup -type=MX yourdomain.co.za to verify. If you've recently changed email providers, double-check that old MX records are removed or updated.

DNS Propagation Seems Stuck: You changed your nameservers hours ago, but whois still shows the old ones. This is usually ISP cache lag, not actual propagation failure. Cause: Registrar lag or ISP resolver cache. Fix: Use whatsmydns.net to check propagation from 20+ global locations. Most should show the new IP within 4 hours. If after 48 hours only 1–2 show the new IP, contact your registrar or HostWP support.

Domain Won't Resolve at All: Nobody can access your site—DNS timeout errors. Cause: Nameservers are incorrect, down, or you've mistyped the A record IP. Fix: Verify your nameservers in your registrar's control panel point to HostWP (or your host). Verify the A record IP matches your actual hosting server IP. Restart your router and try a different DNS resolver (like Google's 8.8.8.8) to rule out ISP issues.

Subdomain Redirects Are Broken: www.yourdomain.co.za or api.yourdomain.co.za won't load. Cause: CNAME is missing, misconfigured, or conflicts with an A record. Fix: In DNS, you can't have both an A record and CNAME for the same name. If www is a CNAME, remove any A record for www. If you need both subdomains and the root domain to work, keep the root as an A record and subdomains as CNAMEs.

Frequently Asked Questions

What's the difference between nameservers and DNS records? Nameservers are servers that store all DNS records for your domain. Your registrar points your domain to nameservers (usually hosted by your web hosting provider). DNS records (A, CNAME, MX, TXT) are the actual instructions stored on those nameservers. At HostWP, our nameservers automatically host your DNS records—you don't manually set nameservers separately.

Can I use Cloudflare DNS and HostWP hosting together? Yes, and we integrate this by default. HostWP points your domain to Cloudflare's nameservers, and Cloudflare proxies traffic to our Johannesburg servers. This gives you Cloudflare's global CDN, DDoS protection, and firewall, plus HostWP's managed WordPress hosting. It's the optimal setup for SA sites seeking speed and security.

How long does DNS propagation take, and can I speed it up? Full global propagation typically takes 24–48 hours, but most resolvers (ISPs, devices) see changes within 4 hours. You can't force propagation, but you can lower TTL before migration to speed it up. Lower TTL to 300 seconds 24 hours before migration, then raise it back after. Local cache flushes on your device give instant results on your end.

What's a CNAME record, and when do I need one? A CNAME (Canonical Name) is an alias pointing one domain to another. For example, www.yourdomain.co.za can be a CNAME pointing to yourdomain.co.za. You need CNAMEs for CDN integration (like Cloudflare), subdomains (blog.yourdomain.co.za), or services like Google Site Verification. Don't create a CNAME for your root domain (@)—use an A record instead.

Is DNSSEC necessary for my WordPress site? DNSSEC adds security by verifying DNS responses haven't been tampered with. It's not strictly necessary for basic WordPress sites, but it's increasingly important for e-commerce, sites handling sensitive data, or businesses under POPIA compliance in South Africa. HostWP enables DNSSEC automatically; if self-managed, enable it unless your provider doesn't support it.

Sources