2 ms·
it's probably dnssec & your time is probably off. jorunalctl -xe should be showing errors if so. probably check 'joirnalctl -xeu systemd-resolved' use 'date'
by rektide 6y ago
it's probably dnssec & your time is probably off.
jorunalctl -xe should be showing errors if so. probably check 'joirnalctl -xeu systemd-resolved'
use 'date' to check the time. if it's off, I use ntpdate to update my clock. but since dns isn't resolving I use 'dig pool.ntp.org @9.9.9.9' to resolve a ntp pool server ip address. then ntpdate [that up].
one of those things that hits me a bunch that I haven't automated quite yet. supposedly newer systemd can detect dnssec being bad in some cases & disable it, after a time, after a bunch of failures, but it either hasn't tripped in a number of cases for me or something else was odd in my envs. manually syncing the clock via ntp usually gets my dns working again.
- westurner 6y ago> manually syncing the clock via ntp usually gets my dns working again. Why is this necessary?
- rektide 6y agonormally systemd-timedated does a good job keeping things in sync! but some of my systems seem to have not great real-time clock batteries, and the system will forget the time. i think there might be some other circumstance that sometimes causes my system clock to be way out of whack, but i'm not sure what. so that's why my clock doesn't work and needs sync. the dnssec internet protocols are designed to guarantee the user that they have up to date, accurate, trustable records. this depends on your system knowing what time it is now. if your system is way ahead or way behind the actual time, the dnssec records it gets dont appear as valid. And systemd-resolved will reject them, if it is set up to respect DNSSEC.
- westurner 6y agoSystemd-timedated: https://www.freedesktop.org/software/systemd/man/systemd-timedated.service.html https://www.freedesktop.org/software/systemd/man/systemd-tim... timedatectl set-ntp false && \ timedatectl set-ntp true Src: https://github.com/systemd/systemd/blob/main/src/timedate/timedated.c https://github.com/systemd/systemd/blob/main/src/timedate/ti...