How to Verify Domain Control With a DNS TXT Record

Publish a verification TXT record at the requested DNS name. Check the exact owner and value, preserve existing TXT entries, and diagnose failures.

FBFenwei BianAuthorNov 24, 2026
  • dns
  • txt-record
  • domain-verification
  • guide

A service verifies DNS-based domain control by asking you to publish a specific value at a specific name. Copy both fields from the service, add a TXT record at the active DNS provider, and check what the authoritative servers return. Passing the challenge demonstrates the requested control for that service. It does not determine legal title or update the domain's registrant.

Separate the host field from the text field

Say a provider asks you to publish the fictional value service-verify=DEMO123 at example.com. In a zone editor for example.com, the host field may accept @, a blank entry or the full name. Follow the editor's conventions. If the provider asks for _verify.example.com, a relative editor may expect only _verify.

This distinction matters because a DNS interface may append the zone name automatically. If you supply the full name to a field that expects a relative label, it could create _verify.example.com.example.com. Verify the resulting name in the zone list or by querying the authoritative server.

Keep other records at that name. An apex can have several TXT records, such as an SPF record and a verification record, each with its own value. Add the new entry instead of overwriting an unrelated record. Google Search Console's verification instructions give one example of a service-issued TXT challenge.

Use two DNS checks

Replace the placeholders in dig @ns1.dns-provider.example _verify.example.com TXT +norecurse with your active nameserver and exact requested owner. Repeat on each delegated server. Check the answer name, record type and text. Quotes printed by a DNS tool delimit a displayed string; they usually do not represent part of the verification value.

Then query the same name through an ordinary recursive resolver. The authoritative check tells you whether you edited the right zone and name. The recursive check can expose a cached negative answer or an older record. If the authorities still lack the entry, waiting will not fix a wrong DNS provider. If all authorities are correct but the verifier still fails, confirm the exact property you selected in the service and check its retry guidance.

Keep the record as long as the service requires it

Some services recheck verification later. Read the service's retention instructions before removing a working record. Give your DNS team a note with the service, owner, expected value and date so a later migration does not drop the entry by accident. When the goal is to identify the registration holder, use a domain registration lookup instead.

Sources and further reading

About the author(s)

Software Developer & Writer • Namefi
FBAuthor

Fenwei Bian is a software developer in her thirties who spends her working hours in pull requests and her weekends with her hands in soil or sawdust. Years of open source on GitHub taught her that names are interfaces: a good one is clear, honest about what it does, and kind to whoever has to use it next.

She gardens because it rewards patience and punishes wishful thinking, and she does woodwork because a joint either fits or it doesn't. Both habits show up in how she writes about naming — measure twice, check the source, and don't sand over a rough spot and hope no one notices.

For Namefi she writes about how domain markets actually move, the practical trade-offs of tokenizing and flipping names, and picking a domain you'll still be glad you own in twenty years.

Related guides

Discuss this post

View the discussion on Namefi Discuss