resolver directive doesn't fallback to the system DNS resolver

Kunal Pariani kpariani at zimbra.com
Mon Jan 12 21:48:32 UTC 2015


Is there already 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 ?

Thanks
-Kunal

----- Original Message -----
From: "Yichun Zhang (agentzh)" <agentzh at gmail.com>
To: nginx at nginx.org
Sent: Wednesday, January 7, 2015 4:30:06 PM
Subject: Re: resolver directive doesn't fallback to the system DNS resolver

Hello!

On Wed, Jan 7, 2015 at 4:15 PM, Francis Daly wrote:
> (You could probably come up with a way to read /etc/resolv.conf when it
> changes, and update the nginx config and reload it; but that's a "dynamic
> reconfiguration" problem, not an "nginx dynamic reconfiguration" problem.)
>

Yeah, I think it's better for the nginx resolver to automatically use
whatever is defined in /etc/resolv.conf when the user does not
configure the "resolver" directive in her nginx.conf.

I'm already tired of seeing all those user questions regarding the
error message "no resolver defined to resolve ..." over the years.
Alas.

Regards,
-agentzh

_______________________________________________
nginx mailing list
nginx at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list