Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how does nginx picks a resolver when there are multiple defined?

Tags:

nginx

dns

How does nginx picks a resolver if you define several like:

...
resolver 108.x.x.x 120.x.x.x 19.x.x.x valid=30s;
...

Is it in a round-robin fashion? or there is some failover logic in there?

like image 991
Juan Sebastian Avatar asked Jun 08 '17 14:06

Juan Sebastian


1 Answers

According to the nginx document http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver

Name servers are queried in a round-robin fashion.

They are using RR.

like image 158
SungJin Steve Yoo Avatar answered Oct 23 '22 10:10

SungJin Steve Yoo