GitLab Pages DNS records (FREE ALL)
A Domain Name System (DNS) web service routes visitors to websites
by translating domain names (such as
www.example.com) into the
numeric IP addresses (such as
192.0.2.1) that computers use to
connect to each other.
A DNS record is created to point a (sub)domain to a certain location, which can be an IP address or another domain. In case you want to use GitLab Pages with your own (sub)domain, you need to access your domain's registrar control panel to add a DNS record pointing it back to your GitLab Pages site.
How to add DNS records depends on which server your domain is hosted on. Every control panel has its own place to do it. If you are not an administrator of your domain, and don't have access to your registrar, you must ask the technical support of your hosting service to do it for you.
To help you out, we've gathered some instructions on how to do that for the most popular hosting services:
- Go Daddy
- Inmotion hosting
- Media Temple
If your hosting service is not listed above, you can just try to
search the web for
how to add dns record on <my hosting service>.
A record maps a host to an IPv4 IP address.
It points a root domain as
example.com to the host's IP address as
CNAME records define an alias for canonical name for your server (one defined
A record). It points a subdomain to another domain.
This way, visitors visiting
www.example.com are redirected to
MX records are used to define the mail exchanges that are used for the domain. This helps email messages arrive at your mail server correctly.
Then you can register emails for
TXT record can associate arbitrary text with a host or other name. A common
use is for site verification.
This way, you can verify the ownership for that domain name.
You can have one DNS record or more than one combined: