Secure DNS with Pi-Hole
Pi-Hole is an open source ad blocker.
Note: Headless vs using a monitor (gui)
Outline of Basic Steps
Format micro SD card (4GB) Write image to micro SD card (Stretch Lite, no GUI)
- Enable SSH: Add a
sshfile without an extension to the micro SD card before powering Raspberry Pi on
- Boot up Raspberry Pi
- Scan local network to identify IP address
- SSH pi@IPADDRESS
Login to the Raspberry Pi using the following default credentials: username: pi password: raspberry
Change user password, because we will be enabling remote access to our Raspberry Pi. If someone was to gain access to your network and find the IP address of your Raspberry Pi it would be really easy for them to get in by using the default login credentials.
Enable Remote Access
To enable SSH, enter the command below to open Raspberry Pi's configuration graphical user interface.
Using the arrow keys select option 5 for Interfacing Options and press Enter
Now select the P2 option for SSH and hit Enter
You will be asked if you would like the SSH server to be enabled. Select Yes and press Enter
Exit out of the configuration graphical user interface by using the right arrow key to select Finish and press Enter
Get the Raspberry Pi's IP Address
Under ethernet 0 we can see our inet address which is going to be the IP Address of the Raspberry Pi.
curl -sSL https://install.pi-hole.net | bash
Hit Enter a bunch...
Select Upstream DNS Provider
Select OpenDNS, or custom
Set Static IP Address
This will differ depending on your network. In our case, we're going to leave as is and select Yes and press Enter
We now have our IP address url and password that we need to login to the web interface.