DNS-over-HTTPS (DoH)
^^^^^^^^^^^^^^^^^^^^
-.. note::
-
- Knot Resolver currently offers two DoH implementations.
- It is recommended to use this new implementation, which is more reliable, scalable and has fewer dependencies.
- Make sure to use ``doh2`` kind in :option:`network/listen <network/listen: <list>>` to select this implementation.
-
.. tip::
Independent information about political controversies around the
A self-signed certificate is generated by default.
For serious deployments it is strongly recommended to configure your own TLS certificates signed by a trusted CA.
+.. code-block:: yaml
+
+ network:
+ tls:
+ cert-file: /etc/knot-resolver/server-cert.pem
+ key-file: /etc/knot-resolver/server-key.pem
+
+
Knot Resolver respects system-wide cryptographic policies. If you are using a
distro that ships such a package, you may use `crypto-policies
<https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/security_hardening/using-the-system-wide-cryptographic-policies_security-hardening>`_
.. option:: key-file: <path>
- .. code-block:: yaml
-
- network:
- tls:
- cert-file: /etc/knot-resolver/server-cert.pem
- key-file: /etc/knot-resolver/server-key.pem
-
.. option:: files-watchdog: auto|true|false
:default: auto