Yunamo Domain Connected to Cloudflare Pages: Fixes Health Check Failures and Enables Primary Domain Access

First of all, congratulations to loc.cc on successfully joining the PSL :tada::tada::tada:

Over the past few days, while browsing the forum, I noticed that many NLers ran into problems when trying to connect loc.cc to Cloudflare Pages. The core issue is actually Cloudflare’s external domain verification mechanism, so I’ve organized the method I used here for everyone’s reference.

Steps

  1. Modify the domain’s NS records in Yunamo

    First, change the NS addresses for xxx.loc.cc to the addresses provided by AnyNS: ns1.anyns.io and ns2.anyns.io

    We set the external NS first to avoid wasting time waiting for the NS changes to take effect. During this time, we can add the domain to AnyNS.

    1-yunamo-custom-nds

  2. Add the domain in AnyNS

    Go to anyns.io and add the xxx.loc.cc domain from the previous step.

    2-anyns-add-domain

  3. Add the custom domain in Cloudflare Pages

    I’ll assume you’ve already created a Pages project. Add a custom domain and enter the complete xxx.loc.cc domain.

    3-pages-add-domain

  4. Return to AnyNS and add a CNAME record

    Set the record name to @, choose CNAME as the type, and enter your Pages project domain as the record value. For the root domain handling method, select “Return CNAME directly”; otherwise, Cloudflare Pages verification will fail and the certificate cannot be issued.

    4-anyns-add-cname

  5. Wait for Pages to show the domain as active

    Once the status of the Pages custom domain changes to “Active”, you’ll be able to access it through the xxx.loc.cc domain, and Yunamo’s health check should also pass without any problems.

Explanation

When Cloudflare Pages verifies an external domain, it checks whether the value returned by your authoritative DNS is the Pages domain it provided. Many DNS providers now enable CNAME flattening by default. This causes Cloudflare to receive a resolved A/AAAA record instead, resulting in verification failure and preventing an SSL certificate from being issued. Therefore, we need a provider that can host a second-level domain, allows the root domain to use CNAME, and can return the original CNAME directly without flattening it.

However, our approach here is non-standard and has two limitations:

  1. DNSSEC cannot be enabled. Once enabled, the CNAME conflicts with the signatures for SOA / NS / DNSKEY, causing public DNS resolvers worldwide to reject the resolution directly.

  2. It may affect other records on the root domain @. Some resolvers that strictly follow the protocol may ignore other records at the same level (MX, TXT, etc.) after seeing a CNAME; lower-level subdomains will not be affected.

Also, once verification has succeeded, don’t re-enable flattening, or subsequent certificate renewals may fail.

That said, if you’re only using it to host Pages, it won’t cause any problems. You might be thinking, “Wouldn’t it be enough to just wait for Cloudflare to merge PSL? Why go through all this?” Well, umm, you probably still have an .adc.sd domain that needs to be kept alive.

5 Likes

image

Yunamo now supports setting Alias and CNAME separately.

It also supports enabling or disabling flattening.

1 Like

Great, that means we can skip these extra steps altogether.

1 Like

Thank you

Thanks for sharing your experience!

1 Like

Like!

That’s great,

No need to make it so complicated. In the CNAME name field, don’t enter the one recommended by Cloudflare—just enter @.

Isn’t the one recommended by CF just @? The OP’s is correct, but you can use it directly now because the admin has changed it to support it.

The toggle switched twice, and the domain got stuck!
Stuck on “Switching DNS hosting method…”. The toggle can’t be clicked, and I can’t add DNS records either.

Wasn’t the root domain pointing to the Pages project set up this way a long time ago? I remember it being connected this way last year.

Got it—yunamo responds so quickly.

The official team has stepped in personally, and yunamo’s features are becoming increasingly polished. It looks like domain hosting guides will soon be a thing of the past.