# HG changeset patch # User Ruslan Ermilov # Date 1321449250 0 # Node ID 05e7496801ec19e1fa68fb0622712421a9f61d37 # Parent 4840aa7bab2c931a6a5d43470488698bc90b0c41 Documented recent changes in the "resolver" directive. diff -r 4840aa7bab2c -r 05e7496801ec xml/en/docs/http/ngx_http_core_module.xml --- a/xml/en/docs/http/ngx_http_core_module.xml Tue Nov 15 13:33:47 2011 +0000 +++ b/xml/en/docs/http/ngx_http_core_module.xml Wed Nov 16 13:14:10 2011 +0000 @@ -1670,7 +1670,10 @@ -address ... + +address ... +[valid=time] + http server @@ -1689,6 +1692,15 @@ Before version 1.1.7, only a single name server could be configured. +By default, nginx caches answers using the TTL value of a response. +An optional valid parameter allows to override it: + +resolver 127.0.0.1 192.0.2.1 valid=30s; + + +Before version 1.1.9, tuning of caching time was not possible, +and nginx always cached answers for the duration of 5 minutes. +