.. SPDX-License-Identifier: GPL-3.0-or-later .. _config-dnssec: ************************* DNSSEC, data verification ************************* Good news! Knot Resolver uses secure configuration by default, and this configuration should not be changed unless absolutely necessary, so feel free to skip over this section. .. warning:: Options in this section are intended only for expert users and normally should not be needed. Since version 4.0, **DNSSEC validation is enabled by default**. If you really need to turn DNSSEC off and are okay with lowering security of your system by doing so, add the following snippet to your configuration file. .. code-block:: yaml # turns off DNSSEC validation dnssec: false The resolver supports DNSSEC including :rfc:`5011` automated DNSSEC TA updates and :rfc:`7646` negative trust anchors. Depending on your distribution, DNSSEC trust anchors should be either maintained in accordance with the distro-wide policy, or automatically maintained by the resolver itself. In practice this means that you can forget about it and your favorite Linux distribution will take care of it for you. Following :option:`dnssec >` section allow to modify DNSSEC configuration *if you really have to*: .. option:: dnssec: false| DNSSEC configuration options. If ``false``, DNSSEC is disabled. .. option:: trust-anchors-files: .. option:: file: Path to the key file. .. option:: read-only: true|false :default: false Blocks zonefile updates according to :rfc:`5011`. The format is standard zone file, though additional information may be persisted in comments. Either DS or DNSKEY records can be used for TAs. If the file does not exist, bootstrapping of *root* TA will be attempted. If you want to use bootstrapping, install `lua-http`_ library. Each file can only contain records for a single domain. The TAs will be updated according to :rfc:`5011` and persisted in the file (if allowed). .. code-block:: yaml dnssec: trust-anchors-files: - file: root.key read-only: false .. option:: hold-down-time: