Sign up Log in
n/yunamo · 9d ago · 495 views
u/user60Filthy richSilverRicher than a country
n/yunamou/user60 Richer than a country · 9d ago

Yunamo domain on Cloudflare Pages: fixing health check failures and getting the apex domain working too

First off, congrats to loc.cc on making it onto the PSL 🎉🎉🎉

Over the past few days I’ve seen a bunch of NLers running into problems trying to hook loc.cc up to Cloudflare Pages. The core issue is actually Cloudflare’s external domain validation. I’m putting together the method I use here for reference.

Steps

  1. Change the domain’s NS records at Yunamo

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

    Setting external NS first is to save time waiting for NS propagation. While that’s happening, we can go add the domain in AnyNS.

  2. Add the domain in AnyNS

    Go to anyns.io and add the xxx.loc.cc domain you just set up.

  3. Add a custom domain in Cloudflare Pages

    I’m assuming you’ve already created the Pages project. Add a custom domain and enter the full xxx.loc.cc.

  4. Go back to AnyNS and add a CNAME record

    Set the record name to @, choose CNAME as the type, and put your Pages project domain as the value. For root domain handling, you need to choose "Return CNAME directly"; otherwise Cloudflare Pages validation won’t pass and the certificate won’t be issued.

  5. Wait for Pages to show Active

    Once the Pages custom domain status changes to "Active", you can access it via xxx.loc.cc, and naturally Yunamo’s health checks won’t have any issues either.

How it works

When Cloudflare Pages validates an external domain, it checks whether your authoritative DNS returns the Pages domain it gave you. A lot of DNS providers now enable CNAME flattening by default, so what Cloudflare gets back is a resolved A/AAAA record instead. That makes validation fail and SSL certificate issuance fail. So we need a provider that can host a subdomain, allow a CNAME at the apex, and return the raw CNAME without flattening it.

That said, what we’re doing here is non-standard and comes with two limitations:

  1. You can’t enable DNSSEC. If you do, the CNAME will conflict with the SOA / NS / DNSKEY signatures, and global public DNS resolvers will refuse to resolve it outright.

  2. It may affect other records at the apex @. Some resolvers that strictly follow the spec may see the CNAME and ignore other records at the same level (MX, TXT, etc.). Lower-level subdomains aren’t affected.

Also, after validation passes, don’t turn flattening back on, or certificate renewals may fail later.

That said, if you’re only using it to host Pages, it doesn’t matter. You might be thinking, why not just wait for Cloudflare to merge the PSL and skip all this hassle? Emmm… you probably still have .adc.sd sitting around that needs to be kept alive, right?

Translated by AI from 简体中文

6
12
Log into join the discussion.
海外原生IP VPS,稳定访问全球网络

还在为IP不纯、平台风控、频繁验证而烦恼? 丽萨主机海外原生IP VPS,双ISP住宅IP,覆盖美国、香港、日本、新加坡、台湾、德国、越南、英国等热门地区,适合跨境电商、社媒运营、AI工具、流媒体及海外业务使用。

lisahost.com Learn more

12 replies

Sort order
  1. James 💯 Legend MANAGER 9d ago

    Yunamo now supports setting Alias and CNAME separately.

    It also lets you toggle whether flattening is enabled.

    Translated by AI from 简体中文

    1
  2. user60 Filthy rich Silver OP Richer than a country 9d ago

    That's great, this way we can just skip those extra steps entirely.

    Translated by AI from 简体中文

    1
  3. Arvin_Leung 🚗 Glory Solved 2 9d ago

    Awesome,

    Translated by AI from 简体中文

    0
  4. kixi Gold 8d ago

    Toggled the flatten switch twice and the domain got stuck!
    It's stuck on "Switching DNS hosting method…", the toggle won't respond, and I can't add DNS records either.

    Translated by AI from 简体中文

    0
  5. Henrypotter 🚗 Silver 3 YEARS 8d ago

    The official team has stepped in themselves, and Yunamo's features are getting more and more complete. Looks like domain hosting guides are about to become a thing of the past.

    Translated by AI from 简体中文

    0
  6. tufei Diamond 9d ago

    Thanks for sharing your experience, boss.

    Translated by AI from 简体中文

    1
  7. 2629914845 9d ago

    Thanks

    Translated by AI from 简体中文

    0
  8. stan95 Gold 3 YEARS 9d ago

    Upvoted!

    Translated by AI from 简体中文

    0
  9. xiaoxue Silver 3 YEARS 9d ago

    No need to go through all that trouble — for the CNAME name, just put @ instead of the one Cloudflare recommends.

    Translated by AI from 简体中文

    0
  10. lslerowan Silver 3 YEARS 9d ago

    Isn't @ exactly what CF recommends? OP is right, but now you can use it directly, since the boss has already changed it to support it.

    Translated by AI from 简体中文

    0
  11. hko46 Gold Never leave, never forsake 8d ago

    Wasn't pointing the root domain at a Pages project set up like this a long time ago? I remember I had it set up that way last year already.

    Translated by AI from 简体中文

    0
  12. mur Silver 3 YEARS 8d ago

    TIL yunamo's response is really fast

    Translated by AI from 简体中文

    0