Proxy DNS resolver mechanism


I’d like to understand how Caddy resolves DNS names for upstream servers when using the proxy module. Does it honour record’s TTL, or only resolves the name when Caddy starts or reloads as haproxy/nginx do by default?

Hi @marpada, welcome to the Caddy community.

I don’t believe the behaviour is specified in Caddy’s programming. My understanding is that it uses Golang’s default behaviour for DNS resolution, which relies on the host running the program. If the host caches the DNS record during its TTL, I expect Caddy to, as well.

1 Like

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