"Redirected too many times" and "An A, AAAA, or CNAME record with that host already exists."

I bought a new custom domain name "rython.dev" and I'm trying to change my website's existing custom domain name to the new one. 1. I'm unable to add a CNAME record to the DNS settings because "An A, AAAA, or CNAME record with that host already exists" even though I'm positive there isn't? 2. When I try to hop on "https://rython.dev" or with a "www" subdomain, it gives me an error "Redirected too many times"
No description
60 Replies
ryan
ryanOP12mo ago
I changed my files in my repository (astro.config.mjs) and I'm not sure if I should have ./public/CNAME with the content www.rython.dev
ryan
ryanOP12mo ago
Update: deleted A records with "www" and I'm able to add the CNAME
No description
ryan
ryanOP12mo ago
Issue #2 still persists
ryan
ryanOP12mo ago
this is what happens when I run wget command
No description
ryan
ryanOP12mo ago
as of right now, github is experiencing issues and I believe that has affected it (I'm using Github Pages)
Chaika
Chaika12mo ago
Under SSL/TLS -> Overview, change your SSL/TLS Mode to "Full (Strict)" Magic link: https://dash.cloudflare.com/?to=/:account/:zone/ssl-tls
ryan
ryanOP12mo ago
thanks, I believe that helped But for now, the Github Actions aren't successfully building and I suspect that it's on Github's side and not mine
ryan
ryanOP12mo ago
haha yea I'll continue this tomorrow now I understood why I couldn't create CNAME, it's not cuz of the property but because of the existing "www" A records
moohr
moohr12mo ago
was wondering why I was seeing 500s all over the place and a merged pr just warped back in time... now it makes sense 😄
ryan
ryanOP12mo ago
XD
ryan
ryanOP12mo ago
Github Pages build and deployment were successful, now I'm not sure why this isn't working
No description
ryan
ryanOP12mo ago
No description
ryan
ryanOP12mo ago
oh wait. what
No description
ryan
ryanOP12mo ago
do I need to pay to solve this issue?
Cyb3r-Jak3
Cyb3r-Jak312mo ago
What happens if you disable proxy status for the domain? What is the SSL certificate that is shown?
ryan
ryanOP12mo ago
like this?
No description
ryan
ryanOP12mo ago
or just undo this step? oh wait I just changed from "Full Strict" to Full and now the domain works yay!
ryan
ryanOP12mo ago
changed back to this
No description
Chaika
Chaika12mo ago
Full is not secure Should only ever use Full (Strict)
ryan
ryanOP12mo ago
ah
Chaika
Chaika12mo ago
It should work without paying though, something else might be broken or need a sec
Cyb3r-Jak3
Cyb3r-Jak312mo ago
Wait I’m confused. Which domain are you trying to use? The www is the CNAME record you have but the custom GitHub domain is for the apex domain.
ryan
ryanOP12mo ago
I'm trying to use rython.dev?
ryan
ryanOP12mo ago
No description
Cyb3r-Jak3
Cyb3r-Jak312mo ago
Then you need the CNAME for the apex to point to the GitHub one and have it configured in GitHub settings. Right now you have a custom domain in GitHub of rython.dev but a DNS record of www.rython.dev pointing to that.
ryan
ryanOP12mo ago
so I need to change the CNAME record?
Chaika
Chaika12mo ago
ehh that shouldn't really matter, he's using the A records Github says you can use for apex, and has a redirect on www
ryan
ryanOP12mo ago
after changing from Full to Full Strict, it seems like the domain continues to work?
Chaika
Chaika12mo ago
No description
Chaika
Chaika12mo ago
Your screenshot shows that
Chaika
Chaika12mo ago
it doesn't for me, probably cache
No description
ryan
ryanOP12mo ago
okay thanks yeah, so I figured it's only an SSL certificate error?
Chaika
Chaika12mo ago
If you switched it to a CNAME on your apex it should work though, because Cloudflare is ok if the cert matches the CNAME target otherwise it's probably because you added it when you had redirects broken, could try enabing/disabling in Github
ryan
ryanOP12mo ago
what should I enable/disable?
Chaika
Chaika12mo ago
Remove and readd the Custom Domain, or maybe just enforce https, it just needs to realize that it is enable to configure https now
ryan
ryanOP12mo ago
ok, will do 👍
Chaika
Chaika12mo ago
If it helps to explain, Github is serving the github.io certificate for your site right now, because it doesn't have one issued for it specifically
curl --resolve rython.dev:443:185.199.111.153 https://rython.dev/ -vvv -k -o /dev/null ... * ALPN: server accepted h2 * Server certificate: * subject: C=US; ST=California; L=San Francisco; O=GitHub, Inc.; CN=*.github.io * start date: Feb 21 00:00:00 2023 GMT * expire date: Mar 20 23:59:59 2024 GMT * issuer: C=US; O=DigiCert Inc; CN=DigiCert TLS RSA SHA256 2020 CA1 * SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway. } [5 bytes data]
Full Works because it accepts any certificate at all, which is why it's insecure it would be best if you could get Github to issue you an actual valid certificate for your site.
ryan
ryanOP12mo ago
should I change the code for Github Actions to host it on a default github url? like make the website work with https://<username>.github.io/...
Chaika
Chaika12mo ago
I don't think that matters as long as it's available through your custom domain
ryan
ryanOP12mo ago
same error
Chaika
Chaika12mo ago
Github still has the same unavailable message?
ryan
ryanOP12mo ago
yes
ryan
ryanOP12mo ago
No description
Chaika
Chaika12mo ago
wonder if it's cached or it did check again and fail, maybe because of proxy? I thought it didn't care well we have the fallback solution then, delete the A records and create a cname record like your www
ryan
ryanOP12mo ago
create another cname record?
Chaika
Chaika12mo ago
yes, you'll have to delete the 4 A Records first though, that you have for rython.dev
ryan
ryanOP12mo ago
No description
Chaika
Chaika12mo ago
then create CNAME @ liyunze-coding.github.io Proxied
ryan
ryanOP12mo ago
what's next?
Chaika
Chaika12mo ago
Your website works
No description
ryan
ryanOP12mo ago
wow didn't expect that to work
Chaika
Chaika12mo ago
Cloudflare trusts the certificate since it knows the target is github.io, which matches the cname target
ryan
ryanOP12mo ago
thanks!
Chaika
Chaika12mo ago
It wouldn't work if you disabled proxy, which is why getting Github to actually issue you a cert would have been better but if you intend to use CF it doesn't really matter
ryan
ryanOP12mo ago
thanks @Chaika ! really appreciate it rythonHeart
Lolo
Lolo12mo ago
Bless that fixed my issue after moving subdomains to tunnels and domain to pages, appreciated
dnawireless
dnawireless10mo ago
Good Day Team , not sure if I’m in the correct thread, please advise. Cloudflare is listed as my DNS host and in an attempt to create a mail account, I’ve been asked to add a CNAME .txt to the host server. I’m not familiar with the Cloudflare platform and would appreciate a bit of direction on this.
Cyb3r-Jak3
Cyb3r-Jak310mo ago
Please make your own thread.
dnawireless
dnawireless10mo ago
Thank you and humble Apologies

Did you find this page helpful?