Skip to content

About dns and resolver #867

@lystormenvoy

Description

@lystormenvoy

I want to confirm whether Nginx can run without the host machine having DNS configured, when I use a domain name in an upstream block.

I have set the resolver directive in my Nginx configuration file, but it seems I still need to set up DNS on the host for Nginx to start properly.

Here's my environment:

I'm running Nginx in a Docker container

The host machine does not have DNS configured (I can't even ping www.google.com from it)

I expected that setting resolver in the Nginx config would be sufficient

However, Nginx fails to launch with an '[emerg] host not found in...' error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions