4 ms·
I'd rather reccomend using the "valid" parameter for resolver than using a variable. Like: resolver 10.0.0.2 valid=30s;
by phillipseamore 8y ago
I'd rather reccomend using the "valid" parameter for resolver than using a variable.
Like:
resolver 10.0.0.2 valid=30s;
- yon_gee 8y agoBy default, the resolver directive should honor the TTL of the DNS entry it resolves (http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver http://nginx.org/en/docs/http/ngx_http_core_module.html#reso...). The load balancer DNS TTL of 60s is a value we didn't feel we needed to override.