Setup Customized Domain of Your Gitlab Page

Knowledge of DNS Record Is the Key

Gitlab page, which is in the default format of *.gitlab.io, is able to host a static page easily. You can use your customized domain name. See the details of this how-to guide. To help yourself understand and follow the how-to guide more smoothly, the knowledge of DNS Record is the key.

In short, your domain provider needs to show the verification text proving that you are the owner of the domain. So you need to know how to get and set the TXT field. You also want to tell which server containing the content of the static page. That said, CNAME should be set as well. In the other words:

The Setup Steps

Gitlab will need the following information:

So, assuming my domain provider is Gandi, the example of setup step is:

That's it! Once you know how DNS TXT query and CNAME work, this setup should be very straightforward.

Troubleshooting Tips

Additional DNS Lookup Utilities

Reference

If you are not familiar the basic knowledge of DNS. HaWay's tutorial(written in Chinese) is a good starter.