How to link two domains using DNS TXT records
DNS text records are frequently used to help organisations demonstrate they have control over a domain. The DNS TXT record approach follows similar principles.
To do this:
Follow the steps above to create your carbon.txt file
Follow Steps 1 to 3 of the Getting Started guide above to create a carbon.txt file for your organisation.
Set a DNS record for the domains you want to link back to your main carbon.txt
Define a DNS TXT record for the domain you want to link back to your main carbon.txt file, with the location of the carbon.txt file prefixed by
carbon-txt-location=
.For example: my-org.com also owns me.my-org.com. In order to link me.my-org.com to the main carbon.txt file, they would create a TXT record that looks something like:
TXT "carbon-txt-location=https://my-org.com/carbon.txt"
Note: You can see an example DNS TXT record for the domain delegating-with-txt-record.carbontxt.org using online tools like nslookup.io