# HG changeset patch # User Sergey Kandaurov # Date 1391866961 -14400 # Node ID 0c5f8630fe40abbe055ecafa4a2d58e6586cc88b # Parent 8d9578f8523b589a7fdd43fa6056f198d3608e2b Documented the mail "resolver" directive. diff -r 8d9578f8523b -r 0c5f8630fe40 xml/en/docs/mail/ngx_mail_core_module.xml --- a/xml/en/docs/mail/ngx_mail_core_module.xml Sat Feb 08 17:42:41 2014 +0400 +++ b/xml/en/docs/mail/ngx_mail_core_module.xml Sat Feb 08 17:42:41 2014 +0400 @@ -183,6 +183,69 @@ + + +address ... +[valid=time] +off +off +mail +server + + +Configures name servers used to find the client’s hostname +to pass it to the +authentication server, +and in the +XCLIENT +command when proxying SMTP. +For example: + +resolver 127.0.0.1 [::1]:5353; + +An address can be specified as a domain name or IP address, +and an optional port (1.3.1, 1.2.2). +If port is not specified, the port 53 is used. +Name servers are queried in a round-robin fashion. + +Before version 1.1.7, only a single name server could be configured. +Specifying name servers using IPv6 addresses is supported +starting from versions 1.3.1 and 1.2.2. + +By default, nginx caches answers using the TTL value of a response. +An optional valid parameter allows overriding it: + +resolver 127.0.0.1 [::1]:5353 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. + + + + +The special value off disables resolving. + + + + + + +time +30s +mail +server + + +Sets a timeout for DNS operations, for example: + +resolver_timeout 5s; + + + + + + diff -r 8d9578f8523b -r 0c5f8630fe40 xml/ru/docs/mail/ngx_mail_core_module.xml --- a/xml/ru/docs/mail/ngx_mail_core_module.xml Sat Feb 08 17:42:41 2014 +0400 +++ b/xml/ru/docs/mail/ngx_mail_core_module.xml Sat Feb 08 17:42:41 2014 +0400 @@ -182,6 +182,70 @@ + + +адрес ... +[valid=время] +off +off +mail +server + + +Задаёт серверы DNS, используемые для определения имени хоста клиента +для передачи его на +сервер аутентификации +и в команде +XCLIENT +при проксировании SMTP. +Например: + +resolver 127.0.0.1 [::1]:5353; + +Адрес может быть указан в виде доменного имени или IP-адреса, +и необязательного порта (1.3.1, 1.2.2). +Если порт не указан, используется порт 53. +Серверы DNS опрашиваются циклически. + +До версии 1.1.7 можно было задать лишь один DNS-сервер. +Задание DNS-серверов с помощью IPv6-адресов поддерживается +начиная с версий 1.3.1 и 1.2.2. + +По умолчанию nginx кэширует ответы, используя значение TTL из ответа. +Необязательный параметр valid позволяет это +переопределить: + +resolver 127.0.0.1 [::1]:5353 valid=30s; + + +До версии 1.1.9 настройка времени кэширования была невозможна +и nginx всегда кэшировал ответы на срок в 5 минут. + + + + +Специальное значение off запрещает использование DNS. + + + + + + +время +30s +mail +server + + +Задаёт таймаут для операций DNS, например: + +resolver_timeout 5s; + + + + + +