Skip to content

How do I set the TXT record needed to prove ownership of my Web Domain?⚓︎

Question⚓︎

How do I set the TXT record needed to prove ownership of my Web Domain?

Answer⚓︎

The TXT record is a type of record in DNS that helps to set a configuration or prove ownership of the domain for web services.

You can add multiple TXT records for different services, in this case you must add the TXT record related with the OSSRH ticket (OSSRH-XXYYZZ) that was created to register your groupId. E.g. OSSRH-12345

As all the Domain Registrars services have different procedures these are some links to some more popular Domain Registrars:

Domain Register Create TXT Record Documentation
Aliyun https://help.aliyun.com/document_detail/29719.html#h2-u57DFu540Du627Eu56DE3
Bluehost https://www.bluehost.com/help/article/dns-management-add-edit-or-delete-dns-entries
Domain.com https://www.domain.com/help/article/dns-management-how-to-update-txt-spf-records
Dreamhost https://help.dreamhost.com/hc/en-us/articles/360035516812-Adding-custom-DNS-records#TXT_record
GoDaddy https://www.godaddy.com/help/add-a-txt-record-19232
Google Domains https://support.google.com/domains/answer/3290350#zippy=%2Cresource-records
Hostgator https://support.hostgator.com/articles/hosting-guide/lets-get-started/dns-name-servers/manage-dns-records-with-hostgatorenom
Juming https://qy.juming.com/help/detail?type=4&id=20
Name.com https://www.name.com/support/articles/115004972547-Adding-a-TXT-Record
Namecheap https://www.namecheap.com/support/knowledgebase/article.aspx/317/2237/how-do-i-add-txtspfdkimdmarc-records-for-my-domain/
Network Solutions https://knowledge.web.com/subjects/article/KA-01111/en-us#TXT-SPF
Tencent https://cloud.tencent.com/document/product/302/12648
Xinnet http://www.xinnet.com/xinnews/domain/27556.html

Check TXT record⚓︎

You can check that you've successfully set your TXT record using an online tool like https://toolbox.googleapps.com/apps/dig/#TXT/ or using the terminal

Windows⚓︎

CMD:

nslookup -type=TXT yourdomain.com

Powershell:

Resolve-DnsName yourdomain.com -Type TXT

Linux⚓︎

$ host -t txt yourdomain.com
yourdomain.com descriptive text "OSSRH-XXYYZZ"

or

dig -t txt yourdomain.com

macOS⚓︎

dig -t txt yourdomain.com