Skip to content

Commit bcf0c04

Browse files
authored
chore: upgrade lua-resty-dns-client to 7.1.0 (#12851)
1 parent b4c1527 commit bcf0c04

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apisix-master-0.rockspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ description = {
3333
dependencies = {
3434
"lua-resty-ctxdump = 0.1-0",
3535
"lyaml = 6.2.8-1",
36-
"api7-lua-resty-dns-client = 7.0.1-0",
36+
"api7-lua-resty-dns-client = 7.1.0-0",
3737
"lua-resty-template = 2.0-1",
3838
"lua-resty-etcd = 1.10.6-0",
3939
"api7-lua-resty-http = 0.2.2-0",

apisix/core/dns/client.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ function _M.new(opts)
147147

148148
opts.timeout = 2000 -- 2 sec
149149
opts.retrans = 5 -- 5 retransmissions on receive timeout
150+
opts.finalCacheOnly = true -- only cache final records
150151

151152
-- make sure each client has its separate room
152153
package_loaded["resty.dns.client"] = nil

0 commit comments

Comments
 (0)