Experience
Original setup was done on a Raspberry pi 4. Because it was an existing Pi I used the GUI version of Pi OS.Everything worked and was replaced with a VM.
Installation
Server: Ubuntu Server 24.04.2 LTS
Login as root
sudo -s
I chose the single line install
curl -sSL https://install.pi-hole.net | bash
After the install you will be given a password that will be used on the admin webpage.
Use a web browser to navigate to http://server-ip/admin and enter the password that was given during the install.
You can read the documentation at https://docs.pi-hole.net/.
First you will want to add a adblock lists. The one I use is https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts.
After adding the list you will need to either point your devices or your router’s dns settings to the IP address of this new server.