I’m trying to verify a custom domain for GitHub pages. This requires me to set a TXT record with the name _github-pages-challenge-shadowban-eu, the shadowban-eu part being the name of the organization under which the custom domain is to be added. The domain is shadowban.eu.
The problem is that I can save the record, but the name gets automatically truncated to _github-pages-challenge. Another variant like _github-pages-challenge-personalaccount works as expected.
The preview above the input fields shows _github-pages-challenge.shadowban.eu has a record with content abcd..
Weirdly enough, I do already have a TXT record with the name _github-challenge-shadowban-eu for the GitHub organization verification. I’ve added that one a while back as in maybe 2 years ago, though.
Cloudflare doesn’t display the domain name on subdomain DNS records. It’s there, though, just like in the ‘www’ record. If you use Advanced Mode to export the zone file, you’ll see it’s there.
The respective GitHub documentation (point 7) prompts users to verify their DNS records with dig _github-pages-challenge-ORGANIZATION.example.com +nostats +nocomments +nocmd TXT
where ORGANIZATION in my case is shadowban-eu, which is interpreted and truncated from the name.
At this point, I see two solutions:
Make Cloudflare not interpret name-tld strings at the end of TXT record names