Skip to content

Commit

Permalink
chore(dns) update dns client library
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Feb 25, 2018
1 parent 769c6be commit a47b757
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kong-0.12.1-0.rockspec
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion kong/core/balancer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a47b757

Please sign in to comment.