From 6421194b31bfc1f4b96fdece8c753f045720f48b Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 4 Sep 2020 12:58:32 +0900 Subject: [PATCH] man: update DNSStubListenerExtra= --- man/resolved.conf.xml | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/man/resolved.conf.xml b/man/resolved.conf.xml index 338bee6c38..c3c6b26329 100644 --- a/man/resolved.conf.xml +++ b/man/resolved.conf.xml @@ -271,27 +271,27 @@ DNSStubListenerExtra= - Takes an IPv4 or IPv6 address to listen on. The address may optionally be prefixed by : and - a protocol name (udp or tcp). When an IPv6 address is specified with a port number, then the - address must be in the square brackets. This option can be specified multiple times. If an empty string is assigned, then the all - previous assignments are cleared. It may also be optionally suffixed by a numeric port number with separator :. - If the protocol is not specified, the service will listen on both UDP and TCP. If the port is not - specified, then the service takes port as 53. This option may be used multiple times. Note that this is independent of the - primary DNS stub configured with DNSStubListener=, and only configures additional - sockets to listen on. Defaults to unset. + Takes an IPv4 or IPv6 address to listen on. The address may be optionally + prefixed with a protocol name (udp or tcp) separated with + :. If the protocol is not specified, the service will listen on both UDP and + TCP. It may be also optionally suffixed by a numeric port number with separator + :. When an IPv6 address is specified with a port number, then the address + must be in the square brackets. If the port is not specified, then the service uses port 53. + Note that this is independent of the primary DNS stub configured with + DNSStubListener=, and only configures additional + sockets to listen on. This option can be specified multiple times. If an empty string is + assigned, then the all previous assignments are cleared. Defaults to unset. - If the string in the format udp:[x]:y, - it is read as protocol udp and IPv6 address x on a port y. - - If the string in the format [x]:y, it is read as both protocol - udp and tcp, IPv6 address x on a port y. - - If the string in the format x, it is read as protocol both udp and - tcp, IPv6/IPv4 address x on a port 53. - - If the string in the format udp:x:y, - it is read as protocol udp and IPv4 address x on a port y. - + Examples: + DNSStubListenerExtra=192.168.10.10 +DNSStubListenerExtra=2001:db8:0:f102::10 +DNSStubListenerExtra=192.168.10.11:9953 +DNSStubListenerExtra=[2001:db8:0:f102::11]:9953 +DNSStubListenerExtra=tcp:192.168.10.12 +DNSStubListenerExtra=udp:2001:db8:0:f102::12 +DNSStubListenerExtra=tcp:192.168.10.13:9953 +DNSStubListenerExtra=udp:[2001:db8:0:f102::13]:9953 +