Pihole is a powerful, network-wide ad blocker that uses your Raspberry Pi as a DNS server to filter out unwanted ads and trackers. In this comprehensive guide, we’ll walk you through installing Pihole on a Raspberry Pi 4, from initial setup to advanced configuration.
After flashing DietPi onto the microSD card, insert it into the Raspberry Pi, connect Ethernet and power, and allow it to boot.
Log into your router, check the device list, and look for DietPi to find the assigned IP address. Use PuTTY to SSH into the Pi using this IP address.
This ensures all devices in your network use Pihole for DNS resolution, effectively blocking ads and trackers network-wide.
Visit Firebog.net to find reliable blocklists. Copy and paste the green, recommended lists into your Pihole blocklist configuration.
To apply changes, go to "Tools" > "Update Gravity" in the admin interface.
Visit popular websites to check for ads. If configured correctly, banner ads and side ads should be blocked, leaving a cleaner browsing experience.
With your Pihole DNS server running, you’ve taken a significant step toward securing and decluttering your home network. Regularly update your blocklists and monitor traffic via the Pihole dashboard to maintain optimal performance.
all right guys today I'll show you the easiest way to install a Pyle DNS server on a Raspberry Pi 4 and then we'll install it into our network and to make this video simple and easy to follow we'll break it down into chapters that way if you mess up or you miss something you can go back and rewatch it and before we get started I want to talk about the location of your Raspberry Pi DNS server as you can see we have ours in our Network panel and we installed it here for two reasons one convenience the second reason the Raspberry Pi 4 is loud you hear that so I don't recommend you put this in your bedroom or your office because the spinning fan is kind of annoying and believe it or not this fan is on quiet mode all right guys before we get started this is the Raspberry Pi 4 we're going to use as our custom DNS server our pie hole so before we get started this will cost you about $139 that's what I paid for this you can get a Raspberry Pi 3 for cheaper I'm sure look on eBay as well you may want to try to get one on eBay but I po mine I got mine new so I got in a kit and it came with a 32 gab uh SSD which is perfect for this size here well you know probably more than we're going to need but perfect uh as far as setting this up make sure your heat sinks are all set up on the chips and make sure your fan is plugged in just a little hints here I plugg mine into the red uh pin into pin one and the black pin into pin 14 you could do pin two for the red one um I do the pin one for the quiet mode I like it I don't want it to be loud or anything so you put the case on top like so like that there you go and you can see over here all the ports um we are going to plug the power into this and we'll plug this into ethernet into one of our ethernet on our switch our Network and then we're good to go now we need to go to the computer and then go ahead and set up our SD card before we do anything else let's go to the computer first and get this all set up okay for the first step we need to download three different types of software first is Diet pi go to diet.com go to download and look for Raspberry Pi and we'll download the first link at the top save it and to save time in this video I'm not going to show the extraction process so after you download it extract the diet Pi files now go to b.i sletcher and then hit download then save the file and then once again extract the file and install it now go to putty. org and download one of the putty files choose the correct file for your system and just a heads up this is not a zip file just double click the icon and hit run and we're going to use this program to SSH into the Raspberry Pi you could always plug in a monitor keyboard and mouse directly into the Raspberry Pi but using SSH is much easier okay now we've downloaded all our software we downloaded putty installed it we downloaded uh diet P installed it and we downloaded etcher as well so now all we going to do is take the SD card we're going to plug it into the computer so click on flash from file and now find the diet Pi file that you just downloaded and from here go ahead and select the micro SD card then hit select then click flash I'm going to fast forward this process it takes a few minutes and if you'd like to video make sure to give a thumbs up and share it now remove the SD card from the computer and install the Raspberry Pi all right now that we're done insert to your Raspberry Pi we're in there and we're going to plug this in to one of our network cables all right here's the Raspberry Pi it's in my network panel right now I'm just going to set it like this until I get everything set up and then I'll probably go ahead and install it somewhere in the panel but network cable plugged into here and I plugged it into my Rus switch power on here there's a power switch turned it on see the light going here we're going to give it about 5 minutes to connect to the network to obtain an IP address and then we're going to log into the router and then we'll find the Raspberry Pi's IP address and then we can SSH into the Raspberry Pi okay now you want to log into your router and go to your network map or device list and look for diet Pi once you find that click on device information and it will show the IP address and the IP address is 1 192.168.1.2 48 you want to make sure to write that down or remember it now we'll go back and launch putty and go into SSH and we're going to use that IP address to secure shell into the Raspberry Pi and once we're in the Raspberry Pi first click on accept type in root and password is Diet Pi after you read all the information hit okay and now diet Pi will install this installation process takes about four or 5 minutes so we'll go ahead and fast forward through this now go ahead and opt out of the survey and here you can change the default password I'm going to skip this to save time but I do recommend you change your password and once again we're not going to change anything right now and I definitely recommend that you change these but for now I'll hit cancel and hit cancel as well and the installation will continue and we'll fast forward through this too next you want to go to install and now hit okay and once again I'll fast forward through all this okay now diet Pi is done installing now it's time to install the pie hole DNS server okay now we need to go to the GitHub page for the py hole project and this page has a command that we're going to copy and paste into our Raspberry Pi okay now go back to the terminal right click on the command line and then hit enter and py hole is now installing congratulations and like before I'm going to fast forward through the installation we're going to try keep this video as short as possible this installer will transform your device into a network AB blocker the py hole is free but powered by your donations so if you enjoy the software you can go to that website and make a small donation the py hole is a server so it needs a static IP address to function properly and go ahead and click yes and here we can select our Upstream DNS provider I'm going to scroll down to custom I use cloud Flare's custom DNS to block malware and adult websites so if you want to use the same one I'm using just follow my steps otherwise choose a different DNS server it's up to you so now hit custom and we're going to type in 1.11.3 comma space 1.0.0 do3 and then hit okay and go ahead and hit yes to confirm Pyle relies on third party lists in order to block ads hit enter to use that list do you wish to install the web admin interface select yes and hit enter again for recommended and hit enter again and hit hit enter again and now pie hole is finishing up the installation and once again we'll fast forward through this configure your devices to use the pie hole as their DNS server using and we have to create a static IP address for our Pyle DNS server and make sure to write down the password for your admin page or take a picture with your camera hit okay now we have to configure the static IP address so copy and paste diet pie config hit enter and go down to number seven Network options adapters now now go to ethernet and at the top make sure the mode is static for my situation when I installed this Raspberry Pi into my network it put the Raspberry Pi on an IP address that was 148 IP addresses from my starting IP address range of 192.168.1.100 which means that when DHCP hands out new IP addresses after the lease time is up the new IP addresses will never get close to my static IP address of1 192 .1 16812 48 it's just too far away we have around 50 devices in our Network so the last IP address to be used on the DHCP server would be 1 192.168.1.5 so make sure to use the same method when you create a static IP address now hit okay hit okay again go ahead and hit okay again hit okay again now exit the interface then log in back to your router router and go to local network we have to change the stack DNS this number has to be the stack IP address of your Pyle server so type that in and hit apply give the network a couple minutes now open your web browser and type in the IP address of your pie hole 192.168.1.2 48 and click on that link right below the Apple this takes you to the admin page now go to login and type in that password that we saved from earlier now it's time to add some block lists go to firebog Donnet and highlight and copy and paste any text in green and bulleted with a tick these are least likely to interfere with browsing so right click and copy it then go back to your pie hole and paste it into the address bar and then hit add in order for the block list to work you need to go to to online update right here and click update depending on the amount of text that you copy and pasted this may take several minutes and here we go we're all done and this is the py hole dashboard if for some reason your dashboard is blank and has no information recheck your router settings make sure the router DNS matches your Pyle DNS IP address if it doesn't match this will not work now is the real test let's check a few popular websites and see if the ab blocking works and as you can see no ads typically the ads will be at the top and the sides of the pages and these websites have no ads fantastic so I recommend a GitHub to copy and paste all the green links into your block lists these links will block ads tracking and mition ious websites and remember your pie hole is only as good as your block lists and as you can see we mounted our Raspberry Pi 4 into our Network panel and when mounting this Raspberry Pi make sure the fan is pointing out this allows for hot air to escape and the Raspberry Pi does get kind of warm and yes the fan is kind of noisy so don't put the Raspberry Pi in your bedroom or your office so guys if you found the video helpful please give a thumbs up and share it and please consider subscribing to to our Channel and make sure to activate the Bell icon so you're notified when we upload new content thanks again for watching you guys are awesome and we'll see you in the next video real soon peace you need a home DNS server
This is "How to Fix Slow Ethernet Speeds in 2025! Quick and Easy!" Great Deals on Ethernet Cables: Cable Matters 10Gbps ...
This is Episode #1 of Cocktails & Computers. The Mojito & The Pi-Hole! This New Video Series is about pairing a Craft Cocktail ...
Before You Buy a Smart Refrigerator or Any IoT Device You Need to Watch This Video. My Favorite Smart Appliances and IoT ...
Welcome back to The Ultimate Tech Hub. On today\'s episode we will show you how to fix a slow ethernet connection. This works ...
Email Scams can cost you lots of money! On today\'s episode we will show the latest email scams and how to avoid them.
Faster Internet Speed is easy to achieve with this one simple setting. How To Get Faster Internet Speed When You Change One ...