Greetings PiHole Discourse!
I'm hoping to find some guidance, general experience insight, and/or recommendations from you all. I love my PiHole dearly but sometimes it's a little nit-picky when power cycling comes in to play.
Here's some context. I travel full time and have wired up my Pi (along with router and cellular gateway) to be used while stopped. With no real need for my wireless LAN while in motion (and the preference to not have those components rattled to death), I typically power them off, take them down, and store them somewhere soft while actively traveling down the road. To be transparent, I have not typically followed protocol for turning off the Pi via correct shutdown APIs β until this evening I sort of figured just ripping the power wouldn't hurt the thing too bad. I'll follow that more in the future.
Hardware wise it's a very vanilla install running on a Pi Zero W with a USB adapter for an ethernet connection to the router (wifi disabled) and power being provided by a standard USB cable from the vehicle's 12v socket.
Anyway, the issue I tend to have is with the correct order of operations with getting my router booted up and my Pi booted up in such a way that the Pi correctly establishes a connection to the router, declares its IP address, and begins the DNS server. It seems like if I power up the Pi first, then power up the Router (having had the ethernet cable connected between them the whole time), the Pi will fail to establish even an IP address on the network β presumably because the Router wouldn't have been fully booted yet β but will never recover or reattempt once the Router is online? I think I have better luck if I disconnect the ethernet line, fully boot the router first, boot the Pi, then connect the ethernet line between the two.
I'm not really versed on the internals of the Pi and/or the PiHole software, and I do think there's a failure to establish an IP address / presence more than a failure for the DNS listener to kick online (I should've done some manual pings when the Router was up but the Pi wasn't talking to it but at least in the Router's web dashboard it was not showing a client for the Pi)... but I'm mostly just curious for some experienced voice(s) to give me a recommendation or two regarding the best boot sequence for the router and Pi to play nice together.
As an alternative I can probably also wire up the Pi to be powered 24/7 and just unplug the ethernet line when I switch to active travel (still putting away the router) but I'm not sure how well the Pi / PiHole software plays with the sequence of "running well on ethernet... ethernet gone... ethernet back several hours later, everything else fires back up" (?)
Thanks!
--
Jon