Worker routes not working for 4th level subdomains

For Workers & Pages, what is the name of the domain?

*.api.domain.com

What is the error message?

DNS_PROBE_FINISHED_NXDOMAIN

What is the issue or error you’re encountering

Unable to route requests from 4th (and 3th) level subdomains to worker.

What are the steps to reproduce the issue?

I have create a very basic worker script that simply returns “Hello world”. I would like to route all requests to *.api.domain.com to it. I’ve configured a worker routing rule as seen in the pictures:


However, any requests made to the subdomain return DNS_PROBE_FINISHED_NXDOMAIN. I can confirm that requests to the 3th level dev url is resolving without issue but the 4th level dev url isn’t. Also, I have not setup any special DNS records.

Does anyone know how I can route 4th level subdomains to a specific worker? Thanks in advance!

For such deep-level custom (sub)domain, we might need to use Advanced Certificate Manager if they’re not covered by the Universal SSL :thinking:

Otherwise, you have to wait a bit longer to get it covered and working, knows to happen even with 1st level custom sub-domain.

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