Using in resolver

Ruslan Ermilov ru at
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 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
and for details.

More information about the nginx mailing list