OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: 9axqe on January 09, 2025, 02:30:38 PM

Title: Loss of DNS capabilities after powercycle
Post by: 9axqe on January 09, 2025, 02:30:38 PM


Today I had a power outage and upon restarting my internet connection was unusable due to this chain of events:


I did a DNS lookup from the WAN intf (Interfaces > Diagnostics) and that worked fine. But DNS lookup from any client or from any service (AdGuardHome, NTP) seemed to all fail.

I added a public DNS under system > settings > general and the issue went away, once NTP had resynchronised.

I am certain this issue did not exist in the past, anyone else has observed this?

The worst part was that everything was that a lot of services (including DHCP) were very unstable, probably due to the time being totally wrong.

Does the fact it was a power outage and not a controlled reboot has any implications? I regularly restart for updates, but a real cold power cycle, I had not done in many months, maybe a year – hence the question.

In hindsight, using the local DNS service might not have been the smartest idea in terms of resilient design, but I would still like to understand if anyone can make a theory as to what happened.
Title: Re: Loss of DNS capabilities after powercycle
Post by: cookiemonster on January 09, 2025, 03:04:10 PM
> The local time on the opnsense router was wrong (multiple years off somehow), NTP was not synchronised.
You might want to test the CMOS battery. The chain of events might have been prevented if the time was kept for the time it was powered off.