DEV Community

Discussion on: Assigning a Google Domain to GitLab Pages

Collapse
 
momosa profile image
Mohammed Abouzahr

Great post and easy to follow!

If anyone's trying to do this with a subdomain, there are a couple of differences. Suppose you want to use subdomain.example.com. Then in your Google Domains custom DNS settings:

  1. Use CNAME instead of A, per the gitlab docs: docs.gitlab.com/ee/user/project/pa...
  2. The Name for the CNAME entry should be your subdomain in subdomain.example.com
  3. The Name for the TXT entry should be _gitlab-pages-verification-code.subdomain, where subdomain is your subdomain in subdomain.example.com