dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

DNS verification fails when using CDN due to IP masking

Open TorstenDittmann opened this issue 7 months ago • 1 comments

To Reproduce

When deploying with Dokploy and using a CDN service (such as Bunny.net or Fastly) in front of my domain, DNS verification fails. This is because the CDN masks the origin ip address, so Dokploy cannot verify the DNS settings by matching the expected IP.

However there is an exception for with some ip ranges for Cloudflare: https://github.com/Dokploy/dokploy/blob/17a26353b6d2412b6023ddfc4cc785605c1368fc/packages/server/src/services/domain.ts#L146-L161

I am not sure how healthy it is to maintain ranges from more providers:

  • Fastly (https://api.fastly.com/public-ip-list)
  • Bunny.net (https://bunnycdn.com/api/system/edgeserverlist)

I'd be more than happy to issue a PR, but I'd like to verify first if this is something that we would do in the first place.

Current vs. Expected behavior

Image

this but for additional providers.

Provide environment information

not relevant

Which area(s) are affected? (Select all that apply)

Application

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

Yes

TorstenDittmann avatar May 24 '25 16:05 TorstenDittmann

Yes, initially when I implemented this, I only wanted to take into account cloudflare as it is very common, however I know there are more providers, I am open to taking on a PR that expands this!

Siumauricio avatar May 25 '25 00:05 Siumauricio