Urgent.News

What's breaking now, across thousands of outlets.

Tech

DNS Records Explained — What A, CNAME, and TXT Records Actually Point To

"Configuring a domain" usually boils down to "adding a DNS record." Setting up a subdomain, improving email deliverability, proving ownership of a domain to some external service — the goals differ, but the actual task is often the same: add one line in a domain management panel. This post walks through three of the most common DNS record types — A, CNAME, and TXT — what each one actually points…

DNS records serve as the building blocks for translating human-friendly domain names into computer-friendly IP addresses. There are three primary record types: A, CNAME, and TXT. To illustrate, let's examine their functions through two real-world examples involving our domain.

An A record is the most fundamental type. It directly maps a hostname, such as wpmm.jp, to a specific IPv4 address. This creates a straightforward connection - traffic meant for the domain is routed to that particular IP. When launching a new web server, an A record is typically the first configuration step.

A CNAME record, on the other hand, treats one hostname as an alias for another. Instead of pointing directly at an IP, it indicates that the actual content resides elsewhere - at a different hostname. The key difference is that a CNAME record provides an indirect reference compared to the direct IP mapping an A record provides. However, there are limitations.

A CNAME record cannot be paired with other record types at the same time, like MX or TXT. It also cannot be placed at the domain apex (e.g., wpmm.jp without a subdomain). Instead, an A record is used in such scenarios.

TXT records are a bit different. They attach an arbitrary text string to a domain name rather than an IP or another hostname. Initially intended for human-readable notes, today they're almost exclusively used by machines for various purposes. Two common uses include proving domain ownership to external services through a random string confirmation and configuring email authentication protocols.

In one instance, we added a TXT record for _dmarc.wpmm.jp, which enabled DMARC email authentication. DMARC combines SPF and DKIM checks to determine how to handle emails that fail these checks, providing a policy response.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Windows Update Stack and ALPC: Two Exploited Local Privilege Escalation Flaws in the September 2026 Patch Tuesday

Windows Update Stack and ALPC: Two Exploited Local Privilege Escalation Flaws in the September 2026 Patch Tuesday Microsoft's September 2026 security update was the largest on record by vulnerability…

  • Two high-priority flaws CVE-2026-81963 and CVE-2026-85880 exploited before patches
  • Both vulnerabilities allow local privilege escalation to SYSTEM on all Windows versions
  • CISA added both to Known Exploited Vulnerabilities catalog with September 22 deadline

dev.to ships its comment CSRF token as value="NOTHING". Here's what that breaks.

There's a small thing that will cost you an afternoon if you ever try to script a comment on dev.to. I'm writing it down because I lost that afternoon.

  • dev.to ships CSRF token as "NOTHING", breaking comment scripting
  • Token crucial for preventing CSRF attacks, unavailable to scripts
  • Non-JavaScript clients receive 422 error due to invalid token

More from Wednesday 30 September →