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.
- 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.
