GitHub Pages DNS check passes, but Enforce HTTPS is unavailable #212496
Replies: 2 comments 1 reply
|
You do not need to move nameservers just to use GitHub Pages. What matters is where the public records for the custom hostname point, and whether the hostname can be validated for a GitHub-managed certificate. I checked the apex via 1.1.1.1: qtholidays.com returned 104.21.29.233 and 172.67.149.247 (Cloudflare), not the Pages addresses. I also reproduced the hostname mismatch with a direct, SNI-aware check against Pages: That separates the two TLS endpoints: Cloudflare HTTPS is working according to your report, but the Pages endpoint tested does not yet present a certificate valid for this hostname. The green DNS check is not proof that the certificate is ready, and no CAA record by itself is not a reason to add one. If Cloudflare already hosts the authoritative DNS, keep its nameservers. For a planned cutover, configure the apex with the documented Pages A records, use DNS only for the Pages hostname, and check for conflicting AAAA records and the www record if you use it. Once public DNS reflects the change, allow time for provisioning, then repeat the direct test without disabling certificate verification before turning on Enforce HTTPS. Important: switching a live apex to DNS only is a traffic cutover, not just a certificate test. If you need uninterrupted HTTPS, keep the apex as-is and test Pages on a separate DNS-only staging hostname first. A staging certificate will not pre-issue the apex certificate, and I am not aware of a documented Pages flow to pre-issue it while the apex still resolves only to the existing Cloudflare front end. |
|
Ah, I see you're looking at that GitHub discussion where someone's custom domain has a green "DNS check successful" status, but the "Enforce HTTPS" toggle is still grayed out and unavailable. The core issue here is that even though the DNS check passed, the domain ( Here is what's actually happening and how to fix it:
|
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Pages
Body
My repository is QUTBITours/qutbi-tours-website-main, and its GitHub Pages custom domain is qtholidays.com. Pages shows “DNS check successful,” but “Enforce HTTPS” is still unavailable. A direct HTTPS test against GitHub Pages IP 185.199.108.153 returned a certificate name mismatch. The live site serves HTTPS through Cloudflare, and a DNS lookup found no CAA record at qtholidays.com. How can I get GitHub Pages to issue the certificate before I switch nameservers?

All reactions