Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab custom domain, failed to verify domain ownership

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.

namechap DNS config

gitlab pages custom domain

like image 219
yong ho Avatar asked Mar 06 '18 05:03

yong ho


1 Answers

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        @   52.167.214.135
TXT Record      @   gitlab-pages-verification-code=XXXXXX
like image 151
sykez Avatar answered Oct 23 '22 04:10

sykez