lua-resty-http icon indicating copy to clipboard operation
lua-resty-http copied to clipboard

if no resolver is specified, what is the default DNS resolution behavior

Open WKCLT opened this issue 6 months ago • 0 comments

I'd like to ask, when using openresty http request_uri, if no resolver is specified, what is the default DNS resolution behavior? My Nginx service is running inside Docker, and I added a host entry in the Docker container's /etc/hosts file. However, the domain name fails to resolve during the http.lua connect call. So I want to know: is the default domain name resolution behavior only using /etc/resolv.conf and not using /etc/hosts?

WKCLT avatar Jul 14 '25 02:07 WKCLT