How to define multiple resolvers?

I want to define more than one resolver to failover if one server is
down,how to do this?

2011-09-01

chinix

On Thu, Sep 01, 2011 at 05:20:33PM +0800, chinix wrote:

I want to define more than one resolver to failover if one server is down,how to
do this?

Currently it’s not possible.


Igor S.

According to the documentation
(Module ngx_http_core_module), it’s
been possible to define multiple resolvers since 1.1.7.

However the documentation does not provide the syntax for doing so.
Separating the IP addresses with spaces seems to work for me (in 1.4.2):

resolver 10.0.0.254 10.1.0.254 8.8.8.8;

Posted at Nginx Forum: