Welcome! Log In Create A New Profile

Advanced

configuration test ignores custom resolver

Anton Demenev
September 07, 2020 01:04AM
Hi everyone!

Unfortunately, I can't find information about how Nginx tests
configuration files.

In my case I have a two internal DNS zones, .develop and .test.

On global http section I added my resolver:

...

http {
    resolver 192.168.140.249 valid=300s;
    resolver_timeout 1s;

...

And I use proxy_pass directive with DNS name likeproxy_pass
http://front-dev.develop;

I expect, that Nginx start to use resolver for upstream name resolving
on test config stage.

But everything go wrong...

On strace output I see, that on start Nginx uses system resolver,
ignoring custom resolver from config.

Can anyone help with this? What I do wrong?

Regards,

Anton.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

configuration test ignores custom resolver

Anton Demenev September 07, 2020 01:04AM

Re: configuration test ignores custom resolver

Francis Daly September 07, 2020 07:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 149
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready