comparison xml/en/docs/http/ngx_http_core_module.xml @ 2870:e06cf66a9f63

Documented the "ipv4=off" parameter of the "resolver" directive.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 19 Jul 2022 14:10:02 +0100
parents 4add6ae1296f
children 44f3b52c0679
comparison
equal deleted inserted replaced
2869:9383e934e546 2870:e06cf66a9f63
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9 9
10 <module name="Module ngx_http_core_module" 10 <module name="Module ngx_http_core_module"
11 link="/en/docs/http/ngx_http_core_module.html" 11 link="/en/docs/http/ngx_http_core_module.html"
12 lang="en" 12 lang="en"
13 rev="99"> 13 rev="100">
14 14
15 <section id="directives" name="Directives"> 15 <section id="directives" name="Directives">
16 16
17 <directive name="absolute_redirect"> 17 <directive name="absolute_redirect">
18 <syntax><literal>on</literal> | <literal>off</literal></syntax> 18 <syntax><literal>on</literal> | <literal>off</literal></syntax>
2178 2178
2179 <directive name="resolver"> 2179 <directive name="resolver">
2180 <syntax> 2180 <syntax>
2181 <value>address</value> ... 2181 <value>address</value> ...
2182 [<literal>valid</literal>=<value>time</value>] 2182 [<literal>valid</literal>=<value>time</value>]
2183 [<literal>ipv4</literal>=<literal>on</literal>|<literal>off</literal>]
2183 [<literal>ipv6</literal>=<literal>on</literal>|<literal>off</literal>] 2184 [<literal>ipv6</literal>=<literal>on</literal>|<literal>off</literal>]
2184 [<literal>status_zone</literal>=<value>zone</value>]</syntax> 2185 [<literal>status_zone</literal>=<value>zone</value>]</syntax>
2185 <default/> 2186 <default/>
2186 <context>http</context> 2187 <context>http</context>
2187 <context>server</context> 2188 <context>server</context>
2204 </note> 2205 </note>
2205 </para> 2206 </para>
2206 2207
2207 <para id="resolver_ipv6"> 2208 <para id="resolver_ipv6">
2208 By default, nginx will look up both IPv4 and IPv6 addresses while resolving. 2209 By default, nginx will look up both IPv4 and IPv6 addresses while resolving.
2209 If looking up of IPv6 addresses is not desired, 2210 If looking up of IPv4 or IPv6 addresses is not desired,
2211 the <literal>ipv4=off</literal> (1.23.1) or
2210 the <literal>ipv6=off</literal> parameter can be specified. 2212 the <literal>ipv6=off</literal> parameter can be specified.
2211 <note> 2213 <note>
2212 Resolving of names into IPv6 addresses is supported 2214 Resolving of names into IPv6 addresses is supported
2213 starting from version 1.5.8. 2215 starting from version 1.5.8.
2214 </note> 2216 </note>