Could not resolve host: sinkron-laporan-santri.masjidarrohman21.workers.dev
The hostname resolves correctly from my local Windows computer, and the Worker is active in Cloudflare. The PHP cURL extension is available on the hosting server.
Could you please check whether the hosting server’s DNS resolver has an issue resolving this hostname, or whether outbound HTTPS connections to workers.dev are restricted?
Thank you.
Other Information
Additional diagnostic results:
PHP cURL extension is available.
The hosting server can connect to Cloudflare’s regular website successfully (HTTP 200).
The Worker URL works when opened from my local computer.
The same Worker hostname cannot be resolved from PHP on the hosting server.
Please advise whether this is a DNS resolver issue on the hosting server or a restriction affecting this specific hostname.
Welcome to the InfinityFree community forum! Good to have you here.
Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
Solving an issue is a joint effort. Try the suggestions you get and report back what happened.
Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.
It’s a restriction on the hostname, not a DNS resolver problem. Cloudflare Workers is on our list of blocked services for outbound connections from free hosting.
Our article on outbound connections lists Cloudflare Workers next to Discord, Telegram and Google Apps Script. It says blocked services may not resolve at all, so you get cURL error 6: Could not resolve host. That matches your error. It also explains why www.cloudflare.com works and your workers.dev hostname doesn’t.
Here’s the article:
The article suggests upgrading to premium hosting if you need to reach these services, or using an alternative service.
Staff have also said this block is intentional and won’t be lifted. The reason is that Workers were mostly being used to get around the Telegram block and to send spam. Another user’s topic got the same answer: