diff --git a/gateway/src/apicast/cli/environment.lua b/gateway/src/apicast/cli/environment.lua index 4b201f28a..0feccddb8 100644 --- a/gateway/src/apicast/cli/environment.lua +++ b/gateway/src/apicast/cli/environment.lua @@ -28,7 +28,7 @@ local function parse_nameservers() local resolver = require('resty.resolver') local nameservers = {} - for _,nameserver in ipairs(resolver.init_nameservers()) do + for _,nameserver in ipairs(resolver.parse_nameservers()) do -- resty.resolver returns nameservers as tables with __tostring metamethod -- unfortunately those objects can't be joined with table.concat -- and have to be converted to strings first