Opened 5 years ago
Closed 5 years ago
#1501 closed defect (wontfix)
multiple resolver would not down if keep failing
|Reported by:||Owned by:|
|nginx -V:||nginx version: nginx/1.12.2 built by gcc 4.8.2 (GCC) built with OpenSSL 1.0.2h 3 May 2016 TLS SNI support enabled|
1, resolver would not down when it fails, and would use it when next resolve
2, Nginx would not retry when one resolver fails
Change History (2)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
|Status:||new → closed|
resolver_timeout directive controls hard limit on the total DNS resolution time. If not answered, DNS queries are resent (to a different server if configured) each 5 seconds, see here. There is no way to configure this timeout though, as this doesn't seem to be needed in most cases in practice.
To make sure DNS queries are resent to a different server if one the configured servers is down, consider using
resolver_timeout set to something like
6s or more.
Note: See TracTickets for help on using tickets.
Replying to crasyangel.lhy@…:
resolver 127.0.0.1 172.18.254.4;
Upstream or other caller can retry if resolver do not