Every month or so all my devices lose internet and the only way to connect them all back is to disconnect them from the DNS server that Pihole is running.

I set my Pihole to have a static IP but for some reason after around a month or maybe longer, it just fails. This has happened 4 times over the last while and the only fix is to essentially uninstall everything on my Pihole, disable it, and then reconfigure it from scratch again.

I’m not sure what’s going on so any help would be appreciated.

-1 points
*
Removed by mod
permalink
report
reply
-1 points

I have up on Pihole a long time ago because of constant issues. Went with self hosted AdGuard and haven’t had a single issue since.

permalink
report
reply
1 point

Do you use ethernet to usb adapter?

permalink
report
reply
-3 points

Built in wifi on the mobo

permalink
report
parent
reply
17 points

Wifi is not for critical services, get that thing wired.

permalink
report
parent
reply
0 points

I use eth, and random disconnects still happen. Switched to an SSD from an SD card, and it’s a bit more reliable now.

permalink
report
parent
reply
3 points

Yeah…wifi.

Good luck!

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
parent
reply
13 points

Are you assigning the static address on your pi, or are you assigning a static address on the router?

permalink
report
reply
5 points

This. I’ve always done dynamic IPs on my devices and set static IPs for them on my router. Never had an issue.

permalink
report
parent
reply
1 point

This is the way. Although, to clarify, you should assign static IPs on your DHCP server, which for most SOHO networks, that’s going to be your router.

If you assign statics on your hosts, your DHCP server will assign them the preferred address if available, but if it’s already assigned then the DHCP server is going to give your device the middle finger and assign them whatever the fuck it wants.

permalink
report
parent
reply
4 points

Not sure if I’m misunderstanding you, but the router/DHCP server doesn’t assign an IP at all to a host that you’ve assigned statically. Any given host can be statically assigned or use DHCP, not both.

The real problem with statically assigning IPs to hosts, is that your DHCP server won’t know that and could give a new device the same IP address as your statically assigned host, causing an IP conflict, if you statically assigned the host with an IP that’s inside the DHCP scope.

What you have to do is only assign static IPs that are outside the DHCP scope, or set all hosts to use DHCP and then use reservations in your DHCP server to make sure they get the same one each time.

permalink
report
parent
reply
46 points
*
Deleted by creator
permalink
report
reply
0 points

This is not an answer to the question at all

permalink
report
parent
reply
1 point

Yeah it is? There’s a reason your dns confutation has a backup IP address.

permalink
report
parent
reply
1 point

That is true. But a simple service like dsn doesn’t go sideways every month usually. If he gets two of these services running, he just had double the trouble.

permalink
report
parent
reply
4 points

I run pihole on a proxmox cluster (lxc containers), 2 separate IPs and I setup keepalived and made the virtual IP the primary dns ip that my dhcp server hands out, pihole1 is the master and pihole2 secondary. I use gravity sync to keep both piholes in sync. Works very well and I can reboot one at a time without losing dns at all. Techno tim on YouTube has a guide on how to setup keepalived on 2 pihole servers that helped me set it up.

permalink
report
parent
reply
9 points

You should probably also sync them. I use orbital sync for this. https://github.com/mattwebbio/orbital-sync

permalink
report
parent
reply
1 point

Or gravity-sync. I use two Pi-holes with gravity-sync and it’s very reliable and effortless.

permalink
report
parent
reply
11 points
*

That’s a good idea that I hadn’t considered. I’ll see if I can get Pihole running on an old android phone I have lying around.

Edit: I now have PiHole running on an old Pixel 3a and have decommissioned my PiHole docker container on my home server.

permalink
report
parent
reply
1 point

I have a google router and It allows me to enter 2 DNS servers incase the first DNS Server doesnt work.

permalink
report
parent
reply
1 point
*

That’s pretty standard for nearly every router and Internet connected device. There is almost always a setting for Primary and Secondary DNS servers. Sometimes you can even set more (ie. 2 IPv6 DNS servers in addition to the 2 IPv4 DNS servers)

permalink
report
parent
reply
2 points

My server and a raspberry are running adguard home

Both have autoupdate with autoreboot. If I need to change something, connect, disconnected, everything will continue working

permalink
report
parent
reply

Selfhosted

!selfhosted@lemmy.world

Create post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

Community stats

  • 5K

    Monthly active users

  • 3.6K

    Posts

  • 81K

    Comments