DietPi PiHole Server Installation

In this segment, we are going to show you how you can “Install PiHole on RaspberryPi inside DietPi”

What is DietPi?

DietPi is an extremely lightweight operating system, start at 400MB in size (3x lighter than ‘Raspbian Lite’). With features of low process/memory footprint and DietPi-RAMlog installed by default, DietPi allows you to get the maximum performance from your device.

Source// DietPi


Software Required :

Equipment Required Optional
Raspberry Pi Raspberry Pi 4 Case
SD_Card SD Card
Raspberry Pi Keyboard
Ethernet Ethernet Cable Mouse
Charger Power Adapter
HDD External HDD
Shop now

DietPi Installation Guide

What is PiHole Server?


Pi-hole is a Linux network-level advertisement and internet tracker blocking application which acts as a DNS sinkhole (And optionally a DHCP server), intended for use on a private network. It is designed for use on embedded devices with network capability, such as the Raspberry Pi, but can be used on other machines running Linux and cloud implementations.

Pi-hole can block traditional website adverts as well as adverts in unconventional places, such as smart TVs and mobile operating system adverts.

Package Required to Install

Pi-Hole- A DNS/Web server that will block ads for any device on your network


  • First of all, we need to open Wireless Network Watcher to access the IP Address of our Pi.
  • Then we need to open SSH console Putty and type the IP Address to connect the DietPi CLI.
  • After we logged in to DietPi, then you need to type a command to access the dietpi-software.
  • Now, navigate to Software Optimized and select Pi-Hole by using the Spacebar and pressing OK.


  1. Change the DHCP network to Static IP and apply all the changes.
  2. Now, exit out from the menu and navigate to install, and press OK
  3. Once the setup begins it asks to select the Interface.
  4. So, you need to select the interface through which you are connected to the internet.
  5. Select Upstream DNS Provider use the default option if you don’t know about other options.
  6. After that press OK to select all default AD-Block Servers.
  7. Now, we need to install Web Admin Interface and press OK.
  8. Now, we need to write down the password and log in to Pi-Hole. we need to type IP.
  • After that installation will complete the setup.
  • Once the setup completes the system will reboot to finalize the settings.

In Conclusion

Now, You are ready to use PiHole Server with DietPi on your Raspberry Pi. Enjoy using it and share your thoughts.

Did you find us helpful?

Support us on Patreon, Follow us on Facebook

Harish Kumar

As a founder of the PcMac YouTube channel and website, Our goal is to provide Free Technical help to people and spread knowledge to everyone.
5 1 vote
Article Rating
Notify of
Inline Feedbacks
View all comments