Issue with setting up custom domain in iCloud

What is the name of the domain?

swancore.net

What is the error message?

Could not route to /zones/undefined/dns_records/086dccd5079680bcb18284df4453f83f, perhaps your object identifier is invalid? No route for that URI.

What is the issue you’re encountering

I am attempting to set up a custom email domain on iCloud and getting an error message from Cloudflare.

What steps have you taken to resolve the issue?

I contacted Apple support, but they and I agree that it appears to be a problem with the Cloudflare system.

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

When attempting the set up in iCloud, after entering the domain name, it detects that the domain is with Cloudflare, then connects to the Cloudflare system to make the DNS changes. When attempting to finish the changes, I get the error below and it fails.

Could not route to /zones/undefined/dns_records/086dccd5079680bcb18284df4453f83f, perhaps your object identifier is invalid? No route for that URI.

Screenshot of the error

I have the same issue and have escalated a case with the Apple Support engineering team. Based on what I see the zone is not being set in the API call to Cloudflare.

1 Like

For now, can you try to create the DNS records from your screenshot manually in the Cloudflare dashboard?

I’ve manually created the records within Cloudflare, but Apple will not verify/enable the required routing for mail. In the past prior to this integration I’ve always updated the DNS records using Terraform without a problem.

I’ve also gone down the path of updating the records manually and then manually calling the Apple callback endpoint and they still won’t verify the records.

Can you share your domain as well as the records that you need to add so I can check? It seems strange that there should be multiple problems at once, both with records creation as well as verification.

Domain is toilops.com and the records are in place on the domain currently. 2 MX and TXT records along with one cname.

dig mx toilops.com
dig txt toilops.com
dig cname toilops.com
dig sig1._domainkey.toilops.com

1 Like

Yeah, those all look good, so it seems like a verification problem on Apple’s side.

I have made the changes manually, but Apple still wants to make them again. It seems to be hung up on the dot at the end of the server names in the MX records. I had the trailing dots in there when I made the manual entries but I guess Cloudflare strips them off. Apple sees them missing and wants to make a change.

The trailing dot is there, you just can’t see it in the dashboard.

dig +short swancore.net mx
10 mx02.mail.icloud.com.
10 mx01.mail.icloud.com.

Did you get anywhere with this? I’m receiving the same error, seems to be an Apple issue but hoping someone’s found a workaround…

Problem is still there. As reported above, it’s been escalated. When I get a chance I’m going to do the same with my ticket.

I am seeing the exact same issue for a domain I moved over yesterday to cloudflare, iCloud refuses to work when creating a custom domain.

Waiting for a call back from Apple when I finish work, will update this thread if anything good comes of it.

Had a call with Apple, went to demo them the problem and it only went and worked, not sure what went wrong but the main thing is its now up and running.

1 Like

Good morning all!

Please try again this morning (02/15/25). Apple has fixed the issue for my domain and I expect it to be resolved for everyone else.

1 Like

Confirmed. It worked for me now, and I’m all set up.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.