# HG changeset patch # User Yaroslav Zhuravlev # Date 1461688317 -10800 # Node ID 1dbef8ab47c70d4f5189b58b1757eec9fbb13ffd # Parent 6c96a644b0b327716b6a1f6ba25cb2403f58fb1b Updated description of service parameter in upstream. diff -r 6c96a644b0b3 -r 1dbef8ab47c7 xml/en/docs/http/ngx_http_upstream_module.xml --- a/xml/en/docs/http/ngx_http_upstream_module.xml Thu May 05 14:43:40 2016 +0300 +++ b/xml/en/docs/http/ngx_http_upstream_module.xml Tue Apr 26 19:31:57 2016 +0300 @@ -10,7 +10,7 @@ + rev="48">
@@ -266,26 +266,35 @@ -service=name | _name._protocol +service=name enables resolving of DNS SRV -records and sets the service name, -or name and protocol in the following format: -_name._protocol (1.9.13). -If only the name is specified, -the TCP protocol is used. - +records and sets the service name (1.9.13). In order for this parameter to work, it is necessary to specify the parameter for the server -and specify a hostname without a port number: +and specify a hostname without a port number. + +If the service name does not contain a dot (“.”), then +the RFC-compliant name +is constructed +and the TCP protocol is added to the service prefix. +For example, to look up the +_http._tcp.backend.example.com SRV record, +it is necessary to specify the directive: server backend.example.com service=http resolve; -server backend.example.com service=_http._tcp resolve; -Both directives specify the same SRV record: -_http._tcp.backend.example.com. +If the service name contains one or more dots, then the name is constructed +by joining the service prefix and the server name. +For example, to look up the _http._tcp.backend.example.com +and server1.backend.example.com SRV records, +it is necessary to specify the directives: + +server backend.example.com service=_http._tcp resolve; +server example.com service=server1.backend resolve; + diff -r 6c96a644b0b3 -r 1dbef8ab47c7 xml/en/docs/stream/ngx_stream_upstream_module.xml --- a/xml/en/docs/stream/ngx_stream_upstream_module.xml Thu May 05 14:43:40 2016 +0300 +++ b/xml/en/docs/stream/ngx_stream_upstream_module.xml Tue Apr 26 19:31:57 2016 +0300 @@ -9,7 +9,7 @@ + rev="12">
@@ -243,26 +243,35 @@ -service=name | _name._protocol +service=name enables resolving of DNS SRV -records and sets the service name, -or name and protocol in the following format: -_name._protocol (1.9.13). -If only the name is specified, -the TCP protocol is used. - +records and sets the service name (1.9.13). In order for this parameter to work, it is necessary to specify the parameter for the server -and specify a hostname without a port number: +and specify a hostname without a port number. + +If the service name does not contain a dot (“.”), then +the RFC-compliant name +is constructed +and the TCP protocol is added to the service prefix. +For example, to look up the +_http._tcp.backend.example.com SRV record, +it is necessary to specify the directive: server backend.example.com service=http resolve; -server backend.example.com service=_http._tcp resolve; -Both directives specify the same SRV record: -_http._tcp.backend.example.com. +If the service name contains one or more dots, then the name is constructed +by joining the service prefix and the server name. +For example, to look up the _http._tcp.backend.example.com +and server1.backend.example.com SRV records, +it is necessary to specify the directives: + +server backend.example.com service=_http._tcp resolve; +server example.com service=server1.backend resolve; + diff -r 6c96a644b0b3 -r 1dbef8ab47c7 xml/ru/docs/http/ngx_http_upstream_module.xml --- a/xml/ru/docs/http/ngx_http_upstream_module.xml Thu May 05 14:43:40 2016 +0300 +++ b/xml/ru/docs/http/ngx_http_upstream_module.xml Tue Apr 26 19:31:57 2016 +0300 @@ -10,7 +10,7 @@ + rev="48">
@@ -265,26 +265,36 @@ -service=имя | _имя._протокол +service=имя включает преобразование SRV-записей -DNS и задаёт имя сервиса -или имя и протокол в следующем формате: -_имя._протокол (1.9.13). -Если задано только имя, то -используется протокол TCP. - +DNS и задаёт имя сервиса (1.9.13). Для работы параметра необходимо указать параметр для сервера -и не указывать порт сервера: +и не указывать порт сервера. + +Если имя сервиса не содержит точку (“.”), то +имя составляется в соответствии с +RFC +и в префикс службы добавляется протокол TCP. +Например, для получения +SRV-записи _http._tcp.backend.example.com +необходимо указать директиву: server backend.example.com service=http resolve; -server backend.example.com service=_http._tcp resolve; -Обе директивы задают одну и ту же SRV-запись: -_http._tcp.backend.example.com. +Если имя сервиса содержит одну и более точек, то имя составляется +при помощи соединения префикса службы и имени сервера. +Например, для получения SRV-записей +_http._tcp.backend.example.comserver1.backend.example.com +необходимо указать директивы: + +server backend.example.com service=_http._tcp resolve; +server example.com service=server1.backend resolve; +