Skip to content
All articles

Your DNS Records Are Right and Nobody Is Reading Them

4 min read

Setting up this site's contact form, the email provider needed DNS records to send from the domain. They were added carefully, the provider said it could not find them, and the records were exactly right.

They were just in the wrong place. Not a wrong value or a typo — a DNS zone that nobody on the internet was reading.

Only one place answers for your domain

When you buy a domain, the registrar usually gives you a DNS editor. It is easy to assume that is where your DNS lives. It only is if your domain's nameservers point at the registrar.

Nameservers are the setting that tells the rest of the internet who is authoritative for the domain. Point them at a hosting provider — common when you connect a domain to a platform like Vercel — and that provider's DNS is now the only one anybody asks. The registrar's editor still works. You can still add records in it. Nothing will ever read them.

That was the whole problem here. The domain's nameservers were the host's, set up when the site was first connected, and the new records had gone into the registrar's editor out of habit.

Check which nameservers are authoritative

One command answers it:

dig NS example.com +short
# or on Windows
nslookup -type=NS example.com

Whatever comes back is where records have to go. If it names your hosting provider, add them in the host's DNS settings; if it names the registrar, add them there. Do this before adding anything, not after the third failed verification.

Check what the world actually sees

Your own machine may have cached an older answer, and the editor you typed into only shows what you saved. To see what a verifying service will see, ask a public resolver directly:

dig TXT example.com @8.8.8.8 +short
dig TXT example.com @1.1.1.1 +short

If your record appears there, verification will find it, and if the service still says it cannot, it is usually still serving a cached negative answer — wait the TTL and try again. If the record does not appear there, no amount of waiting will help; it is not published anywhere that counts.

Two smaller traps on the way

Apex versus subdomain. Some services want a record on the bare domain, some on a specific subdomain such as a _domainkey name for email signing. Editors differ on whether you type the full name or just the part before your domain, and some silently append the domain again. Check the published name with dig rather than trusting the form.

Duplicate SPF records. If an email provider asks for an SPF record and one already exists, add to the existing one rather than creating a second. Two SPF records on the same name is an error, and receiving servers treat it as no valid SPF at all.

The general rule

DNS problems that look like "the service is broken" are very often "the record is somewhere nobody reads". Before debugging a verification, a mail setup or a certificate, spend thirty seconds on two questions: which nameservers are authoritative, and does a public resolver return the record. Between them they rule out most of the afternoon.