After getting the site running on https://username.gitlab.io/project name/ I tried adding a custom domain. The domain is fitshapeprogressions.com.
But this results in the following error:
I think the A records in your DNS configuration are not correct. The challenge with TXT records looks fine.
$ dig fitshapeprogressions.com A
fitshapeprogressions.com. 1653 IN A 185.199.111.153
fitshapeprogressions.com. 1653 IN A 185.199.109.153
fitshapeprogressions.com. 1653 IN A 185.199.110.153
fitshapeprogressions.com. 1653 IN A 185.199.108.153
resolves to IP addresses owned by GitHub but not GitLab. The correct A record is documented here, at the time of writing this is 35.185.44.232.
Verify this works by accessing the server. Note that your zone time-to-live (TTL) is set to 1800 seconds / 30 minutes - this may be the time until caching resolvers take up on the changes.
Thanks for the answer Micheal. I’ve added 35.185.44.232 and removed the other A records. dig now shows the new ip and the TTL should have expired by now. But the error still shows. Any idea as to what else might be going wrong?
Hi @jlu and @dnsmichi
I take the liberty to piggy back this thread.
My doamin is managed with Namecheap
Can’t get my page here to work with the www subdomain
I raised it up to namecheap support who say things are ok from their side
Could you help out ?
url is http://t3p0.com
https works , but the www ends in 401 with or without https
Dear @dnsmichi
THX for your help.
I had resorted to using a redirect to try to solve the issue hence the discrepnancy.
I have now stopped using the t3p0.com “draft url” altogether to use my actual URL: http://diapason.consulting
And still the same issue with the www.
A lot of people (me included) still have the habit of typing www. It is also on my printed business cards
I;d really like to understand what’s up there. A dig command shoes the right IP address, it is really a Gitlab issue.
Please share the pages settings for your GitLab project, there should be 2 domains - diapason.consulting and www.diapason.consulting. Both domains have a different verification code.
The DNS provider settings also need a DNS challenge verification entry each. Can you share how you have configured them?
From a DNS query, I can see that the challenge code is identical for both domain entries, which is likely the problem. Each verification code only is valid for a specific domain entry.