From 61f93c156224af9cc47e4a848bb06e8615530e8b Mon Sep 17 00:00:00 2001 From: Ethan Arrowood Date: Wed, 26 Mar 2025 11:37:24 -0600 Subject: [PATCH] dns: restore dns query cache ttl Fixes: https://github.com/nodejs/node/issues/57636 Co-authored-by: Robert Nagy --- src/cares_wrap.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index e58f164ca5124a..fc8f361614ba5f 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -778,6 +778,7 @@ void ChannelWrap::Setup() { options.sock_state_cb_data = this; options.timeout = timeout_; options.tries = tries_; + options.qcache_max_ttl = 0; int r; if (!library_inited_) {