On Mon, 12 Dec 2022, Niall O'Reilly wrote:
And getaddrinfo() does not return TTL.
Arguably since RFC1034 (1987) and clearly since RFC8767 (2020), this seems
to make addresses obtained from the DNS by getaddrinfo() unsuitable for
cacheing.
I disagree. Completely switching off caching would make repeated requests
significanly slower in several scenarios.
I would perhaps rather say that because we do not get *any* reports about
problems with the existing caching, it might imply that it actually works
fairly well. In spite of things.
While a huge share of all DNS resources use a TTL lower than 60, it seems in
practise they are only rarely actually gone/not working after that time.
I suppose we can at some point discuss lowering the default cache timeout.
--
/ daniel.haxx.se
| Commercial curl support up to 24x7 is available!
| Private help, bug fixes, support, ports, new features
| https://curl.se/support.html
--
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html