Conversation
desec allows TTL of 60s for dyndns domains (dedyn.io)
|
What happens if we set a TTL that's larger than the minimum TTL? I am asking, because I probably had a reason to add this logic. If we change it, we need to be careful to not cause new failures. That is, if the deSEC API retuns an error if the TTL is too low, we might need a different solution than the one here. Could you add and run tests to check the behavior? |
|
I tried it with this test and TTL of 59s. I got: xcaddy buildI used this xcaddy configurationSo yes we might break existing domains with this if they still have the 3600s limit... I just registered a dedyn.io domain a few days ago and just got We could easily query that value using the The reason I want this lower TTL should be obvious. When I restart my router I don't want to wait 1 hour until I can reach my dyndns server again. |
|
Automatically detecting the minimum TTL sounds like a good idea alternative, we could make it configurable in the provider and expose that configuration in Caddy. I prefer having fewer configuration options, so detecting the minimum TTL sounds like a good idea from that perspective. Unfortunately, it also increases the complexity. For example, what do we do if the minimum TTL detection fails? Making it configurable sounds a lot simpler. WDYT? |
|
Peter here, from deSEC.
It's the default for domains under
For dynDNS updates, please see https://desec.readthedocs.io/en/latest/dyndns/configure.html and https://desec.readthedocs.io/en/latest/dyndns/update-api.html.
You can fall back to 3600; it's pretty much guaranteed that the minimum TTL won't ever be higher than that. |
On the Web UI you can specify a TTL down to 60s for a dyndns domain (dedyn.io).
Also in the Forum this is mentioned: https://talk.desec.io/t/more-flexible-ttl-settings/988/3
So this PR reduces the minimum TTL from 3600s to 60s.