I have two Odroid HC1 running Pi-hole, as installed with the DietPi script.
They just sat through a 2.5 day power outage. Coming back up, they WOULD NOT start pulling dns again.
- everything was set up with static IPs, so I could access things.
-
date
on the Odroids gave a timestamp two days old
I came up with a solution;
Pi-hole >> Settings >> DNS >> Upstream DNS Servers
Change from Custom 1/ 127.0.0.1#5335 to anything external
and reboot
then change it back once it was confirmed NTP had updated the time.
I assume the problem is that the NTP time server was specified with a domain, which meant the DNS server (unbound?) refused to do anything since time stamps were so off - including giving a valid ip for a time server to sync with.
Is there any way to automatically resolve this chicken-and-egg scenario? I assume it would be, like, caching some NTP IPs in /etc/hosts on a regular basis