Using 127.0.0.1 in resolver
ru at nginx.com
Sat Dec 21 14:57:32 UTC 2013
On Fri, Dec 20, 2013 at 04:12:45PM -0800, Darren Pilgrim wrote:
> On 12/20/2013 3:20 PM, justin wrote:
> > Using:
> > resolver 127.0.0.1 valid=300s;
> > Does not work. I assume this would simply uses the DNS servers listed in
> > /etc/resolv.conf? Thanks.
> The resolver directive tells NSD to do its own DNS lookups, bypassing
> the system name lookup call (and thus /etc/resolv.conf) entirely.
That's not quite true. Resolving that takes place during
configuration parsing uses the system resolver. Resolving
that takes place at run time uses the DNS servers from the
"resolver" directive. Please see http://nginx.org/r/resolver
and http://nginx.org/r/ssl_stapling for details.
More information about the nginx