How DNS Works: The Internet’s Phone Book Explained
Every time you visit a website, DNS is working behind the scenes. Here’s how it works — in plain English.
Setting up custom domain email for your business elevates your professional image, but navigating the technical DNS records required can be daunting for those unfamiliar with the process. Each DNS record type serves a specific purpose in the email delivery ecosystem, from verifying domain ownership to preventing email spoofing and ensuring messages reach their intended destinations. In this comprehensive guide, I’ll walk through each essential DNS record required for proper custom domain email configuration, helping you establish reliable business email that strengthens your brand identity and communication capabilities.
Purpose: MX Records identify the mail servers responsible for receiving email messages sent to your domain. They direct email to the proper server for processing. Without proper MX records, emails sent to your domain will have nowhere to go.
example.com. IN MX 10 mail.example.com.
example.com. IN MX 20 backup-mail.example.com.
If you have multiple Mail Servers, you can specify a priority for which Mail Server should be attempted first. The numbers “10” and “20” indicate priority - lower numbers are attempted first.
Purpose: These records map hostnames to IP addresses or another hostname (CNAME). These ensure the mail server specified in the MX record is reachable.
mail.example.com. IN A 192.0.2.10
mail.example.com. IN AAAA 2001:db8::1
webmail.example.com. IN CNAME mail.example.com.
Using CNAME records for hosts specified directly in MX records violates DNS standards and may cause email delivery problems with certain mail servers. Always use A or AAAA records for direct mail server hostnames.
Purpose: SPF is implemented as a TXT record that specifies which servers are authorized to send email on behalf of your domain. SPF helps prevent email spoofing by allowing receiving mail servers to verify whether a mail server is authorized to send email from your domain.
example.com. IN TXT "v=spf1 include:email.example.com ip4:192.0.2.0/24 ~all"
Purpose: DKIM records allow the receiving Mail server validate an email is from a specific domain and was authorized by the owner of that domain. This is done using public key infrastructure and is not exposed to the end users. DKIM involves a private key used by the sender to sign emails and a corresponding public key published in the DNS record. DKIM signatures can be obtained by your Email Service Provider.
selector._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC3QEKyU1fSma0axspqYK5iAj+54lsAg51vNI2l4JvRT3lFTX3aYDEXIPGLgXqlXUUWY0gSVpjOG8vA5x0aIyvc7rSLnpGdnrQAvQGaLekgJ/VQqHwJUzwAe+HkS5tJfyWAHljJ4weUY7W5bYk2TUKXWEnQWQA/yNS29sB4S0vdVQIDAQAB;"
DKIM keys should be rotated periodically (typically every 6-12 months) for security. THIS IS LIKELY DONE BY YOUR EMAIL PROVIDER! When rotating keys, add the new key before removing the old one to ensure email continuity. Keys that are too short (less than 1024 bits) may be rejected by receiving mail servers.
Purpose: DMARC is a TXT record that tells receiving mail servers how to handle emails that fail SPF and DKIM checks. DMARC builds on SPF and DKIM to improve domain security, provides a feedback mechanism for authentication results, and specifies how to handle failed authentication.
_dmarc.example.com. IN TXT "v=DMARC1; p=quarantine; rua=mailto:reports@example.com; ruf=mailto:forensic@example.com; adkim=s; aspf=s;"
Alignment Modes
Strict = (s) Exact DKIM Match required.
Relaxed = (r) - Subdomain Emails allowed.
Note that adkim and aspf are optional, and relaxed is the default if unspecified.
p=quarantine: Ask the recipient platform to mark the unauthorized email as spam or quarantine the email.
p=reject: Ask the recipient platform to reject the unauthorized emails. These will not be delivered at all!
p=none: Do not quarantine or reject unauthorized emails. Usually, people only use this policy to troubleshoot or test.
Start with “none” for monitoring, move to “quarantine” with a percentage, then finally to “reject” once you’re confident in your setup.
Every time you visit a website, DNS is working behind the scenes. Here’s how it works — in plain English.
Every GR Host server runs Ubuntu LTS. Here’s why that decision matters for your site’s reliability and security.
A Linux kernel vulnerability called Dirty Frag was disclosed earlier this month. Here’s what we did about it and what it means for you.
Keep your files, photos, and documents private on your own server. Here’s what GR Host’s Nextcloud hosting offers and who it’s built for.
WordPress powers over 40% of the web. That makes it a massive target. Here are five security mistakes we see all the time — and how to avoid them.
Your domain is your address on the internet. Here’s where we recommend buying one.
At GR Host, every customer gets a dedicated VPS. No shared servers, no noisy neighbors. Here’s why that matters.
Lag ruins the Minecraft experience. Here are some simple things you can do to keep your server running smoothly.
Picking the right Minecraft server type makes a big difference. Here’s a simple breakdown of the most popular options.
GR Host’s 2026 Planned Holiday Business Hours
Excerpt
Three web servers dominate the hosting world. Here’s how Apache, NGINX, and Caddy work.
Plugins make WordPress powerful. They can also slow it down, break it, or get it hacked. Here’s how to use them the right way.
A CDN and proper caching strategy can dramatically improve performance, reduce server load, and protect your origin. Here’s why it matters and how we approac...
Not all WordPress hosting is created equal. Here’s what separates managed hosting from unmanaged and why it matters for your site.
Weak or reused passwords are one of the biggest risks to your WordPress site. Here’s how to do better without making your life harder.
Not every website needs WordPress. Here’s a simple breakdown to help you pick the right tool for the job.
GR Host’s 2025 Planned Holiday Business Hours
Learn how to setup DNS to enable email for your domain!
Virtual machines, containers, Kubernetes — the modern internet runs on these technologies. Here’s what they actually mean.
Every website asks about cookies. But what are they actually?
GR Hosts responding to the XZ vulnerability.
Version control is one of the most important tools in modern software development. Here’s why it matters, how Git works, and what CI/CD means for your workfl...
GR Host 2024 Holiday Business Hours
New Data Centers in Chicago and Washington DC
Computers, servers, drivers, firmware. Tese words get thrown around a lot. Here’s what they actually mean.