This is an automated email from the ASF dual-hosted git repository.

nic443 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new bcf0c044d chore: upgrade lua-resty-dns-client to 7.1.0 (#12851)
bcf0c044d is described below

commit bcf0c044d573ac9a0bfed07746728b31253b46e5
Author: AlinsRan <[email protected]>
AuthorDate: Sun Jan 4 18:03:02 2026 +0800

    chore: upgrade lua-resty-dns-client to 7.1.0 (#12851)
---
 apisix-master-0.rockspec   | 2 +-
 apisix/core/dns/client.lua | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/apisix-master-0.rockspec b/apisix-master-0.rockspec
index a8e49c6f5..cfb4934d9 100644
--- a/apisix-master-0.rockspec
+++ b/apisix-master-0.rockspec
@@ -33,7 +33,7 @@ description = {
 dependencies = {
     "lua-resty-ctxdump = 0.1-0",
     "lyaml = 6.2.8-1",
-    "api7-lua-resty-dns-client = 7.0.1-0",
+    "api7-lua-resty-dns-client = 7.1.0-0",
     "lua-resty-template = 2.0-1",
     "lua-resty-etcd = 1.10.6-0",
     "api7-lua-resty-http = 0.2.2-0",
diff --git a/apisix/core/dns/client.lua b/apisix/core/dns/client.lua
index 1bf2aca4d..021852051 100644
--- a/apisix/core/dns/client.lua
+++ b/apisix/core/dns/client.lua
@@ -147,6 +147,7 @@ function _M.new(opts)
 
     opts.timeout = 2000 -- 2 sec
     opts.retrans = 5 -- 5 retransmissions on receive timeout
+    opts.finalCacheOnly = true -- only cache final records
 
     -- make sure each client has its separate room
     package_loaded["resty.dns.client"] = nil

Reply via email to