Cname for root domain not publishing

What is the name of the domain?

clementsandchurch.co.uk

What is the issue you’re encountering

I have created a CNAME for the root domain, this is required for our salesforce website utilising CNAME Flattening, when doing a dnslookup the CNAME is not resolving and causing issues with the salesforce portal.

What feature, service or problem is this related to?

DNS records

There is a CNAME for www, but no records are returned for the root domain…
https://cf.sjr.org.uk/tools/check?32c49029ed0447c28494244e234dc609#dns

Can you show a screenshot of your DNS records?

Note that it’s not possible for them to see the CNAME at the root directly, only IP addresses, as a CNAME at the root is always flattened to return IP addresses. (Although as I say at the moment, nothing is returned).

1 Like


Here is the DNS record…
I’m not very good with DNS records so please excuse my ignorance.
the www cname is inplace so clients can direct to www.clementsandchurch.co.uk… this is working as we expect.
we are trying to ensure clients that type HTTPS://clementsandchurch.co.uk are also able to get to the site… Salesforce have told us that a CNAME on the root would acheive this, we then have to go through some configureation of the salesforce portal, but without the record being resolved the salesforece side just errors.

Can you paste the full target clementsandchurch.co.uk.00d1...... into a post as it doesn’t show in full in the screenshot.

1 Like

its the same as the resolve on the WWW record.

Could you please try changing the name of the record from clementsandchurch.co.uk to @?
(On saving the @ will automatically be replaced by your domain again)

Also, could you do the content of the CNAME again? But this time, please type it instead of doing copy/paste.

1 Like

Are you sure it is actually the same?

1 Like

I have already attempted this and as you instruct it replaced the @ with clementsandchurch.co.uk

clementsandchurch.co.uk.00d1t000000ehikeas.live.siteforce.com this is what we have been instructed to enter via salesforce.

the www cname record includes www.clementsandchurch.co.uk.00d1t000000ehikeas.live.siteforce.com as the destination.

That does not resolve. Only the www version resolves.

[add] Likely there is some automated process where Saleforce checks for the CNAME record before creating the target. This won’t work for the apex domain since it can only ever return A/AAAA records and not CNAMEs. I seem to recall someone else having similar a little time ago.

Check with Salesforce how they handle these records at the apex.

1 Like

they have told us this is how to setup the record, and they rely on CNAME flattening ??!

You’ll have to ask them then, as clementsandchurch.co.uk.00d1t000000ehikeas.live.siteforce.com does not resolve so Cloudflare can’t return the flattened result.

[add] Try adding www to the front of it. Since they can’t see the CNAME anyway, that at least resolves.

If i change the root cname to the www.clementsandchurch.co.uk.00d1t000000ehikeas.live.siteforce.com should i expect to see DNS lookup resolve this?

Yes (my addition to my post crossed with yours!)

thanks, i’ll make that change and see what happens.

I have made the change, using MXToolbox cname lookup i still dont see a resolve.?

You won’t see the CNAME due to the flattening.

It resolves…

dig +short clementsandchurch.co.uk
2.16.167.122
2.16.167.105

Whether that satisifies Salesforce you’ll need to check, but this is the way CNAMEs at the apex have to work.

2 Likes

Ok , understood, i’ll see if i can work with this… thanks for your help.

2 Likes

As clementsandchurch.co.uk redirects to www.clementsandchurch.co.uk anyway it’s probably not an issue. You could do the same redirect on Cloudflare instead as here…

Then Salesforce will just see the requests on www.

1 Like

looks complicated but i will give it a go. thanks.