resolver directive doesn't fallback to the system DNS resolver
Yichun Zhang (agentzh)
agentzh at gmail.com
Thu Jan 8 00:30:06 UTC 2015
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.
More information about the nginx