klutchell / balena-pihole

Pi-hole is a Linux network-level advertisement and Internet tracker blocking application.
https://pi-hole.net
MIT License
299 stars 101 forks source link

Static IP assignment #204

Closed n1md4 closed 1 year ago

n1md4 commented 1 year ago

On your router or DHCP server assign a static IP to your Pi-hole device ...

This would not work for me. I wanted both DNS and DHCP.

I would set as such on my ISP router, but after disabling DHCP on ISP router (UK TalkTalk and Virgin Media offerrings) it would seemingly drop connectivity to the Pi-Hole. Upon enabling DHCP on ISP router connectivity would resume. I worked around this by setting a static IP address within resin.io as detailed here.

I would have thought more issues would have been raised if this was a wider problem, but perhaps a foot-note is worth adding to the wiki just in case :)

eiddor commented 1 year ago

The wording is technically incorrect - What we're actually suggesting is that you create a reservation on your DHCP server for your Pi-hole device so that it assigns a consistent address. The issue is that not every DHCP server (especially ISP-provided ones) actually allow reservations. We're not actually telling you to turn off DHCP; that would be bad!

I'll try to clean up the wording sometime soon.

n1md4 commented 1 year ago

Thanks. Appreciate not everyone wants to run DHCP on Pi-Hole, but the UI on the Virgin Media Hub 3 is absolutely awful. I had DHCP on the Pi-Hole enabled, and would then disable DHCP on the ISP router; which is when i'd lose connectivity. No real issue here, can close. Only posted because it took me a while to resolve my issue.

eiddor commented 1 year ago

Yeah, if you're going to run DHCP on the Pi-Hole (I don't), then you have to give it a static IP via resin as you did. I've updated the doc to call it a reservation insread of a static IP. Thanks for the call-out!