":ref:`DNS-over-TLS (DoT) <tls-server-config>`","``tls``"
":ref:`mod-http-doh`","``doh``"
":ref:`Web management <mod-http-built-in-services>`","``webmgmt``"
+ ":ref:`Control socket <control-sockets>`","``control``"
+.. note:: By default, **unencrypted DNS and DNS-over-TLS** are configured to **listen
+ on localhost**.
-
-*By default, these are configured to listen on localhost.*
+ Control sockets are created either in
+ ``/run/knot-resolver/control/`` (when using systemd) or ``$PWD/control/``.
.. function:: net.listen(addresses, [port = 53, { kind = 'dns', freebind = false }])
":ref:`DNS-over-TLS (DoT) <tls-server-config>`","``net.listen('192.0.2.123', 853, { kind = 'tls' })``"
":ref:`mod-http-doh`","``net.listen('192.0.2.123', 443, { kind = 'doh' })``"
":ref:`Web management <mod-http-built-in-services>`","``net.listen('192.0.2.123', 8453, { kind = 'webmgmt' })``"
+ ":ref:`Control socket <control-sockets>`","``net.listen('/tmp/kresd.control', nil, { kind = 'control' })``"
Examples:
package from AUR_.
-**OpenSUSE Leap / Tumbleweed**
+**openSUSE Leap / Tumbleweed**
Add the `OBS <https://en.opensuse.org/Portal:Build_Service>`_ package repository `home:CZ-NIC:knot-resolver-latest <https://software.opensuse.org/download.html?project=home%3ACZ-NIC%3Aknot-resolver-latest&package=knot-resolver>`_ to your system.
.. _AUR: https://wiki.archlinux.org/index.php/Arch_User_Repository
HTTP services
=============
+.. tip:: In most distributions, the ``http`` module is available from a
+ separate package ``knot-resolver-module-http``. The module isn't packaged
+ for openSUSE.
+
This module does the heavy lifting to provide an HTTP and HTTP/2 enabled
server which provides few built-in services and also allows other
modules to export restful APIs and websocket streams.