# Pihole stops working after power outage

**URL:** <https://discourse.pi-hole.net/t/pihole-stops-working-after-power-outage/24975>\
**Category:** General\
**Created:** [October 29, 2019, 2:59pm UTC](https://discourse.pi-hole.net/t/pihole-stops-working-after-power-outage/24975 "2019-10-29T14:59:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [October 29, 2019, 4:24pm UTC](https://discourse.pi-hole.net/t/pihole-stops-working-after-power-outage/24975/2 "2019-10-29T16:24:35Z")

</div>

It appears that the Pi may be losing track of time when it loses power (Pi's don't have a built in clock). Then, when it starts up, it cannot resolve DNSSEC since the time is not correct, thus cannot connect to an ntp server to set the time.

There are several potential solutions.

1. Put the Pi on a battery backup or UPS so it won't lose power and won't lose time.

2. Install an inexpensive clock module (this is one example [Amazon.com: DS3231 Real Time Clock Module 3.3V/5V with Battery for Raspberry Pi and Arduino by Atomic Market : Industrial & Scientific](https://www.amazon.com/battery-Raspberry-Arduino-Atomic-Market/dp/B01M105UFC?tag=pihole09-20)).

3. You can also set the Pi itself to use an upstream DNS resolver other than Pi-Hole. By default, Pi-Hole sets the DNS resolver in /etc/resolv.conf to the loopback address (assuming that you will want the Pi to use Pi-Hole for DNS resolution). You can do this with local changes to your installed Pi-Hole code:

> [@How do I disable Pi-hole automatic add 127.0.0.1 in resolv.conf](https://discourse.pi-hole.net/t/how-do-i-disable-pi-hole-automatic-add-127-0-0-1-in-resolv-conf/18248):
>
> I'm using Debian9 latest Pi-hole ( Not on raspberry PI, on external self-hosted Server ) How can I avoid every time restart pi-hole auto add nameserver 127.0.0.1 inside /etc/resolv.conf

One note - since you are using a local DNS resolver (unbound, it appears) that does DNSSEC resolution natively, you don't need to (nor do you want to) enable DNSSEC in Pi-Hole as well.

---

_[View the full topic](https://discourse.pi-hole.net/t/pihole-stops-working-after-power-outage/24975)._
