I have a small issue and i need an expert to enlighten me,
Issue:
my website works on [medousadevelopers.com]
But
Does not work on [https://www.medousadevelopers.com]
Solution:
I understand that the www is not declared in the A records, which is a fact,
But!
I cannot add another A nor Cname record because i have another one which is needed bcz i had issues with gmail and google hosted mails that i cannot touch bcz it fixed it.
What i ask the community Experts:
Possible solution 1 that i thought but i want to ask you guyz if its valid or some clarification:
Can i add 2 content on a Cname without affecting the functionality of it?
ie.
Type: CNAME
Name: WWW
Content: ghs.googlehosted . com
Will it work without affecting the first ghs.googlehosted . com ?
Its crazy that with other registrators i can add more then 1 www record and with cloudflare its not possible⌠i persist that there should be a way because i dont want to change cloudflareâŚ
Strictly speaking within Cloudflare, that is true, however by the fact you have a CNAME created and unproxied, DNS Resolvers follow that CNAME to resolve requested records.
Your www subdomain does have A/AAAA records returned via the CNAME.
A CNAME on www wouldnât have anything to do with mail
No, thatâs not possible. A CNAME is a âcanonical redirectâ, youâre basically saying âlook over hereâ, having two would be saying âlook over in two places for your recordâ.
Cloudflareâs not doing anything weird here
It looks like you already do have a CNAME on www for ghs.googlehosted.com, but itâs not working, probably because whichever Google Product you are using, you havenât added your www as another custom domain to be allowed.
The better option here though would be to pick to use either www or apex (medouasdevelopers.com), and redirect the other to the one you pick. If you want your apex to be the location for your site, you can follow this guide here to add a Cloudflare redirect from www to apex (just make sure to remove the CNAME on www first): Redirecting www to domain apex ¡ Cloudflare Pages docs. Otherwise, search engines punish for duplicate content.
Let me know if that helps your confusion, I understand that it can be a bit confusing with all of the record types and options
Yea, no redirect rules or anything like that will work without a proxied record existing, the traffic for www currently isnât going through Cloudflareâs http request flow, so Cloudflare canât act on it with redirects or anything.
We had an issue with sending emails to gmail and google hosted emails, it was giving me a spam response everytime the company sent mails to gmail or google hosted and never went.
When i spoke to Google they told me that i need to add that Cname record www to point to ghs. googlehosted . com
It did resolved the issue, if i remove this record the company will have issues again with gmail and google hosted mail servers.
We need to find a solution without removing that record?!
A cname on www to google hosting, which is used for google sites, isnât going to have anything to do with email. Especially considering you donât even use google for email, your domain uses Microsoft 365 looks like.
The only way youâd find a solution without removing that record is probably by signing up for google sites and getting google to return the redirect, but it doesnât even look like you use them, nor do I know if google sites even offers redirects like that.
Pretty much all I can say is that I donât see how a cname on www has anything to do with email delivery, especially when itâs to google sites and you donât seem to even use them. If youâre having email delivery issues, try testing with https://www.mail-tester.com/ and see if spf/dkim/something else is broken, you can look at Troubleshooting email issues ¡ Cloudflare DNS docs as well.
The issue started when i propagated to a new domain registrar⌠Apparently there was some bad records on the mail and suddenly any email the company was sending to gmail or google hosted mails returned an immediate error that google says that my domain is spam and did not delivered my mail to the sender, however i was able to receive mails from gmailâŚ
Then when i spoke to google support, they told me to add this www record which apparently actually fixed the issue and now we dont receive spam. this record is quite sensitive bcz if i remove that record then the whole company âim assumingâ will have this issue again and we dont want thatâŚ
thanks for the tips i will look into them and also i have some other troubleshoots to try out today and see if that remediates the issue.
If anyone has any more ideas into how to redirect www to apex other then a cname record please enlighten us
Im testing it now, i did above, let me know if all good or could be better.
Im surprised why its not working already but i will give it 48 hours to confirm that this above is not working.
i already tried with the âRedirect Ruleâ Beta version and waited 48 hours with no result.
Lets see if above will work.
I believe it should work bcz thats not a record its separate and there is no duplicate unless the issue is with the Cname Record that i have for the www that is pointing to google and its clashing with it as below:
Case
I have a record www pointing to google
i have a forward url pointing to apex from www.medousadevelopers.com
None of the rules/redirects are going to work as long as that hostname is unproxied. Cloudflare canât act on traffic not flowing through it.
The CNAME resolves to an A record when DNS Resolvers follow it, it wouldnât matter if it didnât though because traffic still isnât flowing through Cloudflare.
Youâd need a proxied record, like the originless record Cloudflare recommends for redirects AAAAwww100::Proxied, and youâd have to delete the cname first. Youâre looking down the wrong direction, the cname isnât the thing fixing your email issues. Just think about it logically: Every single website would need a www cname pointing to google if they just want to email them? Someone should tell https://www.cloudflare.com/ then.
Try mail tester and other tools to diagnose mail issues, ensure your spf/dkim is configured correctly, etc.
I understand that it does not make sense, However if you donât " Test " things you dont know.
I will take the risk and test it at some point, bcz its a fact when i added the Cname to google the mails started working⌠or is it? maybe they got fixed alone after some time because of the propagation of the registrar and until Google updates its system it wanted a week or soâŚ
hmmm⌠as im thinking now i thought of maybe because i created a google account with a domain email this could have created the spam issue with google ? as Google might have seen that this domain created a gmail but did not add the cname of google and it resolved it as spam ? then maybe by deleting the google account that is created with that domain could resolve the issue ?
Some food for thought and to look at for later on testing.