I don't think I need to use the subdomain. I have created a A record and a TXT record as the doc suggests on namecheap.com. After wait for 24 hours, I sill get a failed to verify domain ownership
error.
Remove your CNAME
record. Also, remove the URL redirection and your first TXT
record. You shouldn't be using both CNAME
and A
records together.
If using a DNS A record, you can place the TXT record directly under the domain. If using a DNS CNAME record, the two record types won't co-exist, so you need to place the TXT record in a special subdomain of its own. [source]
So your final configuration would be:
A Record @ 35.185.44.232
TXT Record @ gitlab-pages-verification-code=XXXXXX