Allow DNS module to set a default propagation_delay

Hi, I figured this would be better to start as an discussion instead of raising it as an issue.
Is it possible, or could it be made possible to allow DNS providers to set their own default value for propagation_delay?

My use case specifically is that I just made the module https://github.com/caddy-dns/domainnameshop, and during testing I found it most reliable to wait up to 60 seconds before querying the challenge.

There could be many reasons for the delay (rate-limiting, waiting for DNSSEC signing, etc…), but regardless if it’s you need a consistent delay then it would be useful if the provider module could set that delay as default.
Maybe with a helpful log print that indicates that the module is overriding the Caddy’s default.
If the user sets their own delay in the configuration then that still has priority.

1 Like

Hmm; we don’t really have an API for that. For now, I would probably just document a recommended value – maybe even show a config example (the acme_dns global option is a good way to go) – and see if that helps most users well enough. :+1:

I figured it was not possible right now yeah, I’ve documented the recommended delay both as a “known issue” but also in some of the examples.
Though as far as I know and tried out, you cannot set propagation_delay in the global options, only in the tls block of server options.

A workaround there though is that I’ve given an example of how to use with the import directive, not exactly global, but close enough in most use cases.

1 Like

Right, sorry, not acme_dns – try cert_issuer. You’ll just have to configure the whole ACME issuer instead of just the DNS provider.

This topic was automatically closed after 60 days. New replies are no longer allowed.