by HaroldBolt78 · 3y ago · 0 comments
Anyway, after it came back on, it took me far too long to realise why my internet was down. All DNS responses were being rejected. It turns out, my Pi-Hole DNS server - which had forgotten the time, of course - was trying to resolve the IP of an NTP server so it could fetch the current time, but this name resolution was over DNSSEC which requires the current time. You need the time to get the time.
I turned off DNSSEC and haven't looked back since.
This is a reason you add an RTC to your RPi.
> At least we need to get better at building fault tolerant systems.
Security and fault tolerance are at odds here. Failing closed when you can't validate is correct, but not so useful. Properly modeling the clock might give you a way to get bootstrapped, but then an adversary would arrange for a bootstrap situation so they could interfere with your clock and then make use of the incorrect time for their nefarious purposes.
[1] https://git.einval.com/cgi-bin/gitweb.cgi?p=fake-hwclock.git
I'd just implement that in 0.2 nanoseconds if I were a Samsung engineer making an intrusive adserver.