DEV Community

The TXT record that exists in your panel but not in your zone

Domain verification looks like the simplest task in the book. A service hands you a record name and a value, you paste both into your DNS panel, you hit "verify".

Then you spend an hour staring at a failure while the record sits right there in the table. Here is the failure mode I keep running into, and the one-line check that settles it.

Your panel appends the domain

Many hosting panels assume the name field holds a prefix only, and that they will append the zone name for you. The verifying service, meanwhile, gives you the fully qualified name: verification.example.com.

Paste the full name, let the panel append the domain, and the zone ends up with verification.example.com.example.com. The records table looks fine, because the table shows what you typed. The name that actually landed in the zone is longer, and nothing displays it to you.

Ask the authoritative server, not a resolver

Query the server that holds your zone directly, for the exact name the service asked for:

dig +norecurse @ns1.yourprovider.com verification.example.com TXT

NXDOMAIN means the name does not exist in the zone. That rules out propagation in one step, because propagation concerns copies held by other resolvers and you just asked the original. If the original has nothing, waiting changes nothing.

NOERROR with an empty answer section means the name exists but carries no TXT record. Different problem, different fix.

Negative caching is why your retry fails

You fix the name, hit "verify" again, and it still fails. The record is correct now, so what gives? Resolvers cache negative answers too. The duration comes from the SOA minimum field, not from the record's own TTL, and a few minutes is typical. During that window the verifier gets the old "does not exist" straight from cache.

Lowering the record TTL to 300 seconds is still worth doing. It governs how long a wrong positive answer sticks around, and you usually cannot tell which of the two bit you.

In my last run verification passed two to three minutes after I dropped the TTL. I will not claim the TTL caused it, because one case cannot separate that from the negative cache simply expiring. What I will say is that lowering TTL before you add the record costs nothing and removes one variable.

Order of operations that avoids the whole loop

  • Lower the TTL on the zone first, before you create anything.
  • Create the record, entering the prefix only if your panel appends the domain.
  • Query the authoritative server and confirm the fully qualified name resolves.
  • Only then press verify.

I hit this most recently while claiming a business profile in ChatGPT's Business Hub, which uses a TXT record for domain confirmation. The full write-up (in Polish) has screenshots of each stage and what went wrong on the first attempt.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.