eduardoweiland commented on issue #10956: URL: https://github.com/apache/apisix/issues/10956#issuecomment-2230772062
I am currently testing apisix in a local Docker environment and was having this same issue. After some debugging and looking through the code, I found out that passing the option `no_recurse = true` to the [resty-dns-client](https://github.com/api7/lua-resty-dns-client) it works very well, at least for resolving Docker container names inside the same network. Unfortunately, there is no way to specify this option in the config right now, as both [DNS discovery](https://github.com/apache/apisix/blob/a17655bb7541f1c47441afbbc2e1103fdc45c73c/apisix/discovery/dns/init.lua#L72) and [default DNS client](https://github.com/apache/apisix/blob/a17655bb7541f1c47441afbbc2e1103fdc45c73c/apisix/core/utils.lua#L98) pass a hardcoded options object for the client init. Maybe this option could be exposed as an apisix config? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
