]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
systemd: omit unneeded IP from ListenStream/Datagram
authorTomas Krizek <tomas.krizek@nic.cz>
Wed, 22 May 2019 11:42:25 +0000 (13:42 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Wed, 22 May 2019 12:00:17 +0000 (14:00 +0200)
daemon/bindings/net.rst
systemd/kresd-doh.socket.d/all-interfaces.conf
systemd/kresd-tls.socket.d/all-interfaces.conf
systemd/kresd.socket.d/all-interfaces.conf
systemd/kresd.systemd.7.in

index 1109ed114774743ff1dbd0664530e391ff9d55bd..5a55181fef1c99e6a8fd2eff9e1383d8eb75f90e 100644 (file)
@@ -78,7 +78,7 @@ distribution. It is also possible to check resulting configuration using
 The default localhost interface/port can also be removed/overriden by using an
 empty ``ListenDatagram=`` or ``ListenStream=`` directive. This can be used when
 you want to configure kresd to listen on all IPv4/IPv6 network interfaces (if
-you've disabled IPv6 support in kernel, use ``0.0.0.0`` instead of ``[::]`` ).
+you've disabled IPv6 support in kernel, use ``0.0.0.0:port`` instead`` ).
 
 .. code-block:: none
 
@@ -86,8 +86,8 @@ you've disabled IPv6 support in kernel, use ``0.0.0.0`` instead of ``[::]`` ).
    [Socket]
    ListenDatagram=
    ListenStream=
-   ListenDatagram=[::]:53
-   ListenStream=[::]:53
+   ListenDatagram=53
+   ListenStream=53
 
 .. note:: Using IPv6 to bind to IPv4 interfaces is currently not compatible
    with IPv4 syntax in ``view:addr()`` when using the ``view`` module. For
@@ -145,7 +145,7 @@ on port 443, create the following drop-in file for ``kresd-doh.socket``:
    # /etc/systemd/system/kresd-doh.socket.d/override.conf
    [Socket]
    ListenStream=
-   ListenStream=[::]:443
+   ListenStream=443
 
 Make sure no other service is using port 443, as that will result in
 unpredictable behaviour. Alternately, you can use port 44353 where a collision
index 63619099469328a6412f2fc8cfde861ada586f7e..6df2bfee66683c5149148ee499106ecdb9a5b9e0 100644 (file)
@@ -3,9 +3,8 @@
 # Configure kresd-doh.socket to listen on all IPv4 and IPv6 interfaces.
 
 # Empty ListenStream= directive is required to avoid port clash with default
-# localhost. If you've disabled IPv6 support in kernel, use 0.0.0.0 instead of
-# [::]
+# localhost. If you've disabled IPv6 support in kernel, use 0.0.0.0:port instead
 
 [Socket]
 ListenStream=
-ListenStream=[::]:443
+ListenStream=443
index 7607f267be365d361191630bdeebf5af4c628d3d..3d9d74aa536eef04d505df3ac0f4d19e5312da31 100644 (file)
@@ -3,9 +3,8 @@
 # Configure kresd-tls.socket to listen on all IPv4 and IPv6 interfaces.
 
 # Empty ListenStream= directive is required to avoid port clash with default
-# localhost. If you've disabled IPv6 support in kernel, use 0.0.0.0 instead of
-# [::]
+# localhost. If you've disabled IPv6 support in kernel, use 0.0.0.0:port instead
 
 [Socket]
 ListenStream=
-ListenStream=[::]:853
+ListenStream=853
index c077d9ea0ceab6f8e10d31d3885a3bced4744189..bbe2eedcb335aba944bc3f3baccc34af03a1d39d 100644 (file)
@@ -4,10 +4,10 @@
 
 # Empty ListenDatagram= and ListenStream= directives are required to avoid port
 # clash with default localhost. If you've disabled IPv6 support in kernel, use
-# 0.0.0.0 instead of [::]
+# 0.0.0.0:port instead
 
 [Socket]
 ListenDatagram=
 ListenStream=
-ListenDatagram=[::]:53
-ListenStream=[::]:53
+ListenDatagram=53
+ListenStream=53
index 32b28d271eb77495a41cac239aacc97aec7a32fd..d1f815cdad4565627338f70dea5e236e8cc130c5 100644 (file)
@@ -84,8 +84,8 @@ ListenStream=192.0.2.115:853
 
 To configure \fBkresd\fR to listen on all IPv4 and IPv6 interfaces, use empty
 \fIListenDatagram=\fR and \fIListenStream=\fR directives to remove the default
-localhost address and then  bind to the [::] address. If you've disabled IPv6
-support in kernel, use the 0.0.0.0 address instead.
+localhost address and then specify port to bind to. If you've disabled IPv6
+support in kernel, use the 0.0.0.0:port syntax instead.
 
 .nf
 .RS 4n
@@ -93,13 +93,13 @@ support in kernel, use the 0.0.0.0 address instead.
 [Socket]
 ListenDatagram=
 ListenStream=
-ListenDatagram=[::]:53
-ListenStream=[::]:53
+ListenDatagram=53
+ListenStream=53
 
 # /etc/systemd/system/kresd-tls.socket.d/override.conf
 [Socket]
 ListenStream=
-ListenStream=[::]:853
+ListenStream=853
 .RE
 .fi
 
@@ -122,7 +122,7 @@ on port 443, create the following drop-in file for \fBkresd-doh.socket\fR:
 # /etc/systemd/system/kresd-doh.socket.d/override.conf
 [Socket]
 ListenStream=
-ListenStream=[::]:443
+ListenStream=443
 .RE
 .fi