DNS for Pages domains
We say in the docs that I should use an A record for a root domain:
When we add a new root domain to GitLab Pages, the UI says I should use a CNAME record (not an A record):
When I add an A record poiting
22.214.171.124, I see this error:
When I change it back to an A record instead of the CNAME apex, it keeps working
Then, I want to redirect
marcia.ml. When I add a CNAME record to point
wwwto the root domain, it does work out-of-the-blue, there's no need to set up anything in GitLab:
Then I want to do the same thing again, redirect
marcia.ml. But, when I add another CNAME record poiting
helloto the root domain, it does not work as the previous one:
I tried to add
hello.domain.comto my Pages settings, and I verified it with the TXT record, and it still doesn't work, but GL Pages says it should be working:
Then the UI says I should use a CNAME from
marcia.gitlab.io, and when I do that in Cloudflare, nothing changes, I get the same error "This site can’t be reached - hello.marcia.ml’s server IP address could not be found. - DNS_PROBE_FINISHED_NXDOMAIN":
UPDATE: Okay, https://hello.marcia.ml is working now, so prob was a matter of DNS propagation.
UPDATE (1): As
hellois working now, I added another domain (
hello-world.marcia.ml) as I did for
www, using just a CNAME to
marcia.ml. Not working, waiting a while to see if the DNS propagates.
- Testing project: https://gitlab.com/marcia/marcia.gitlab.io
- Testing domain: marcia.ml
- Testing subdomains: https://www.marcia.ml, https://hello.marcia.ml, and https://hello-world.marcia.ml
- Final config after item 11 above (TXT for
- What should we do about the A record (item 1 above)? Fix the docs or fix GitLab? I mean, the apex domain thing is not widely supported, is it?
Do we still support multiple subdomains for the same website? If so, what should I do to make
- Why does
wwwwork without the TXT record?