Skip to content

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

Description

@WKCLT

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions