diff --git a/kong-0.12.1-0.rockspec b/kong-0.12.1-0.rockspec index ddc28bd96b5..77fe2399b75 100644 --- a/kong-0.12.1-0.rockspec +++ b/kong-0.12.1-0.rockspec @@ -27,7 +27,7 @@ dependencies = { "luaossl == 20171028", "luasyslog == 1.0.0", "lua_pack == 1.0.5", - "lua-resty-dns-client == 1.0.0", + "lua-resty-dns-client == 2.0.0", "lua-resty-worker-events == 0.3.1", "lua-resty-mediador == 0.1.2", "lua-resty-healthcheck == 0.3.0", diff --git a/kong/core/balancer.lua b/kong/core/balancer.lua index 67efccfaf38..5500c48b916 100644 --- a/kong/core/balancer.lua +++ b/kong/core/balancer.lua @@ -764,7 +764,8 @@ local function execute(target) hostname = target.host if not ip then log(ERR, "[dns] ", port, ". Tried: ", tostring(try_list)) - if port == "dns server error: 3 name error" then + if port == "dns server error: 3 name error" or + port == "dns client error: 101 empty record received" then return nil, "name resolution failed", 503 end end