DNS for Pages domains
I was trying to set up GL Pages again for https://gitlab.com/gitlab-org/gitlab-ce/issues/47585 and https://gitlab.com/gitlab-org/gitlab-ee/issues/302#note_79893273, as part of the meta issue https://gitlab.com/gitlab-org/gitlab-ce/issues/39978, but I'm having some issues here.
-
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
marcia.ml
to52.167.214.135
, I see this error: -
When I change that to CNAME, it does work, but CloudFlare gives me an alert:
-
When I change it back to an A record instead of the CNAME apex, it keeps working
-
Then, I want to redirect
www.marcia.ml
tomarcia.ml
. When I add a CNAME record to pointwww
to 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
hello.marcia.ml
tomarcia.ml
. But, when I add another CNAME record poitinghello
to the root domain, it does not work as the previous one: -
I tried to add
hello.domain.com
to 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
hello.marcia.ml
tomarcia.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
hello
is working now, I added another domain (hello-world.marcia.ml
) as I did forwww
, using just a CNAME tomarcia.ml
. Not working, waiting a while to see if the DNS propagates.
Testing environment:
- Testing project: https://gitlab.com/marcia/marcia.gitlab.io
- Cloudflare
- 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
marcia.ml
andhello.marcia.ml
):
Questions
- 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 makewww.marcia.ml
andhello.marcia.ml
work?- Why does
www
work without the TXT record?