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
[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
# /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
# 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
# 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
# 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
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
[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
# /etc/systemd/system/kresd-doh.socket.d/override.conf
[Socket]
ListenStream=
-ListenStream=[::]:443
+ListenStream=443
.RE
.fi