]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
doc: explain how to disable DNSSEC validation with sd-resolved in FAQ
authorLuca Boccassi <bluca@debian.org>
Wed, 21 Aug 2024 18:54:47 +0000 (19:54 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 22 Aug 2024 12:24:49 +0000 (14:24 +0200)
DNSSEC requires the system time to be synced in order to work,
as the signature date and expiration need to be checked by
resolvers. But it is possible that syncing the times requires
doing DNS queries. Add a paragraph to the FAQ explaining how
to break this cycle by asking nss-resolved to always avoid
DNSSEC when chronyd tries to resolve hostnames.

doc/faq.adoc

index 8fff79570e20dc2e65f8284cd69abc4ca2cc7181..144bb8c75145cd0adb042f96bffce1a87124d054 100644 (file)
@@ -772,6 +772,17 @@ print all sources, even those that do not have a known address yet, with their
 names as they were specified in the configuration. This can be useful to verify
 that the names specified in the configuration are used as expected.
 
+When DNSSEC is enabled, it will not work until the time is synchronized, as it
+requires validating a signature timestamp and its expiration date, so if the
+system time is too far in the future or the past DNSSEC validation will fail and
+`chronyd` will be unable to resolve the address of the NTP server. In such cases,
+if hostnames are the only options and bare IP addresses cannot be used, DNSSEC
+can be disabled for `chronyd` using resolver-specific mechanisms, if available,
+although of course that means losing the protection afforded by DNSSEC.
+For example, when using systemd-resolved, the `SYSTEMD_NSS_RESOLVE_VALIDATE=0`
+environment variable can be set, for example in the `chronyd` systemd unit via
+`Environment=SYSTEMD_NSS_RESOLVE_VALIDATE=0`.
+
 === Is `chronyd` allowed to step the system clock?
 
 By default, `chronyd` adjusts the clock gradually by slowing it down or