The PiHole in the house was just sat in the server cabinet and plugged into the wall, when the power went off i have a UPS on the internet and the Wifi but the PiHole goes down and i cant use the internet anyway. I decided to upgrade the Pi to an 8Gb Pi 4 model and add POE so that it could be powered by the switch which is connected to the UPS. I got a nice rackmount to make the installation a lot cleaner. It didnt take long to install and worked straight the way.