There are a lot of guides on how to install Pi-hole on a pi. I just used the win32DiskImager to put Rasbian on it and I did put an ssh.txt file on the SD card to enable SSH. I just had to plug it in the pi and wait for it to show up on the DHCP list of my router so that I knew the IP to ssh to.
I have an archer c7 router which has “DNS rebind protection” so I could not change the DNS to the local IP address.
In order to fix it I had to go to the Archer web interface and follow these steps:
Add in dhcp –> dhcp settings, set the primary DNS to the local ip
in the dhcp –> address reservation “add new “ paste the mac address which you can find in dhcp –> dhcp clients list.
and the local ip which the pi has. This makes sure that the next reboot, the pi/dns server will have the same lan IP.
By the way, I had an issue with the ‘ftl’ part in the installation of pi-hole
I fixed it with : `sudo nano /etc/resolv.conf`
add a line with: `nameserver 22.214.171.124`
That is the google dns and that makes sure that there is a know dns so that the installation can lookup ip’s and continue.
Save the .conf file and run `sudo bash /etc/.pihole/pihole –r`
That will repair the installation and the FTL part will succeed now that there is an dns entry to the google dns in the resolv.conf
ps. please let me know if you know a way to block youtube ads. No browser plugin, but a pi-hole solution please.