Bytes & Bobs

GitLab Pages and Namecheap

2020-10-18

This is not a setup guide for GitLab pages, but just a note on the combination of it with Namecheap's DNS.

The first fishy smell was when testing the verification code with dig after having set up the DNS entries as given on GitLab's documentation when setting up Pages.

dig _gitlab-pages-verification-code.bytesandbobs.net TXT

This didn't return my verification code - weird. But what does?

dig _gitlab-pages-verification-code.bytesandbobs.net.bytesandbobs.net TXT

Aha! Namecheap adds your domain as a suffix and doesn't tell you. The solition? Set up your TXT record, but just use the key _gitlab-pages-verification-code rather than the one provided by GitLab which contains your domain.