Forum: NGINX How to define multiple resolvers?

D87e56eca4c37d7873026f5ccddb8e02?d=identicon&s=25 chinix (Guest)
on 2011-09-01 11:21
(Received via mailing list)
I want to define more than one resolver to failover if one server is
down,how to do this?

2011-09-01



chinix
0f7a1240e82f744c6c607fa7081b99f7?d=identicon&s=25 Igor Sysoev (Guest)
on 2011-09-01 12:15
(Received via mailing list)
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 Sysoev
2974d09ac2541e892966b762aad84943?d=identicon&s=25 sufw (Guest)
on 2013-08-14 03:47
(Received via mailing list)
According to the documentation
(http://nginx.org/en/docs/http/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:
http://forum.nginx.org/read.php?2,214613,241819#msg-241819
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.