Welcome! Log In Create A New Profile

Advanced

Re: resolver directive doesn't fallback to the system DNS resolver

Yichun Zhang (agentzh)
January 12, 2015 05:20PM
Hello!

On Mon, Jan 12, 2015 at 1:48 PM, Kunal Pariani wrote:
> Is there already a patch for this ?

AFAIK, the Tengine fork has a patch for this.

> I am not completely sure of how to make the nginx resolver (in ngx_resolver.c) fallback to libresolv automatically and if this not trivial enough, i just might read the resolvers from /etc/resolv.conf and provide it to the 'resolver' directive. Any suggestions ?
>

I was not talking about falling back to libresolv because it is very
likely to block the nginx event loop or introduce extra OS threads for
no good. I was talking about extracing nameserver addresses
automatically from /etc/resolv.conf (or similar places in other exotic
operating systems) and feed them into nginx's current nonblocking
resolver.

And yes, for now, the latter workaround should be the simplest for you :)

Regards,
-agentzh

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

resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 05, 2015 06:06PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 07, 2015 03:50PM

Re: resolver directive doesn't fallback to the system DNS resolver

Francis Daly January 07, 2015 06:16PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 07, 2015 06:38PM

Re: resolver directive doesn't fallback to the system DNS resolver

Francis Daly January 07, 2015 07:16PM

Re: resolver directive doesn't fallback to the system DNS resolver

Yichun Zhang (agentzh) January 07, 2015 07:32PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 12, 2015 04:50PM

Re: resolver directive doesn't fallback to the system DNS resolver

Yichun Zhang (agentzh) January 12, 2015 05:20PM

Re: resolver directive doesn't fallback to the system DNS resolver

kunalvjti January 12, 2015 05:56PM

Re: resolver directive doesn't fallback to the system DNS resolver

itpp2012 January 13, 2015 04:58AM

Re: monitor upstream IP addr changes without using nginx's resolver

kunalvjti January 16, 2015 02:18PM

Re: monitor upstream IP addr changes without using nginx's resolver

itpp2012 January 16, 2015 02:59PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
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