Technical Anshu Home › Tutorials › Pi-hole on Ubuntu
🕳️ Pi-hole Setup

Install Pi-hole on Ubuntu

One Ubuntu machine can quietly remove ads and trackers for every phone, TV and laptop in your house. Pi-hole does it at the DNS level, before the ad is even downloaded — here is the complete setup, in the right order: address first, install second, router last.

✍️ Technical Anshu🐧 Ubuntu / Pi-hole🎧 Multi-Language Audio
Install Pi-hole on Ubuntu
🎧 Multi-Language Audio: In the video player, click [Settings] (⚙️) ➔ [Audio track] to select your preferred audio.

📑Chapters

  1. Why the address comes first — Pi-hole needs a fixed IP
  2. Updating Ubuntu and running the official installer
  3. Choosing an upstream DNS provider in the setup screens
  4. The default blocklist, the static IP confirmation and the admin password
  5. Pointing the router's DNS at the Pi-hole machine
  6. Verifying from a phone or laptop — live queries on the dashboard
  7. The honest limits — what DNS-level blocking cannot do

📋 Overview & Step-by-Step Guide

1

Give the Ubuntu Machine a Fixed Address First

Pi-hole must live at an address that never changes, because every device in the house will be told to ask it for DNS. If its address moves, the whole house loses name resolution. Set a static IP on the Ubuntu machine before you install anything — or reserve its address in the router — and keep that address outside the range your router hands out automatically (the DHCP pool).

2

Update Ubuntu, Then Run the Official Installer

Pi-hole is installed with the project's own automated installer, straight from pi-hole.net. First update the system packages:

Terminal — Ubuntu
sudo apt update

Then run the installer exactly as published on pi-hole.net:

Terminal — Ubuntu
curl -sSL https://install.pi-hole.net | bash

The installer checks your system, installs what Pi-hole needs, and then walks you through a few blue setup screens. Take them slowly — the next steps happen inside those screens.

3

Choose an Upstream DNS Provider

Pi-hole blocks the bad questions, but the good ones still need a real answer. In the installer you pick an upstream DNS provider — names like Cloudflare, Google, Quad9 or OpenDNS are offered in the list. Any of them works; the practical difference is speed and the provider's own logging policy. Pi-hole asks them only for domains that are not on your blocklists, and caches the answers, so repeat questions are answered locally and instantly.

4

Keep the Default Blocklist and Save the Admin Password

The installer offers a starting blocklist (the well-known Steven Black list). Leave it ticked — it is a sane, conservative starting point that blocks ads and trackers without breaking normal sites. Confirm the static IP details when asked, and let the installation complete.

⚠️ Note the admin password shown at the end of the install. That password protects the web dashboard — save it somewhere safe before you close the screen. If you ever lose it, it can be reset from the terminal on the Ubuntu machine itself, but saving it now is far easier.
5

Point Your Router at Pi-hole

Installing Pi-hole changes nothing until devices actually use it. Log in to your router's settings, find the DHCP or LAN DNS setting, and set the DNS server to the Pi-hole machine's static address. From then on, every device that joins your network is automatically told to resolve names through Pi-hole. Renew a device's connection (or reboot it) and it picks up the new DNS.

⚠️ This change affects the whole network at once — every phone, TV and laptop in the house. Do it when nobody is in the middle of work, a class or a download, and keep the router's old DNS setting noted so you can switch back in seconds if anything looks wrong.
6

Verify From a Client, Not From the Server

Open a browser on a phone or laptop and load a few normal sites, then open the Pi-hole dashboard from that device:

Browser Address Bar
http://pi.hole/admin

You can also open the machine's own address followed by /admin. You should see queries arriving live on the dashboard. That — not a successful install screen — is the proof the setup works: real devices, asking real questions, with the blocked ones quietly disappearing.

7

Know the Honest Limits Before You Expect Magic

Pi-hole blocks at the DNS level only. Ads that are served from the same domain as the content itself — YouTube in-stream ads are the famous example — cannot be blocked this way, because blocking that domain would block the videos too.

📌 Pi-hole is a network-wide ad and tracker filter — it is not a VPN and not an antivirus. It also means the Ubuntu machine must stay on: if it is switched off, devices that use it as their only DNS server cannot open websites by name until it comes back.

🏷️Topic Search Variables & Keywords

🔍 Pi-hole 🔍 Ubuntu 🔍 DNS 🔍 AdBlocking 🔍 StaticIP 🔍 TechnicalAnshu 🔍 Networking 🔍 HomeNetwork 🔍 Install Pi-hole on Ubuntu 🔍 Pi-hole Setup 🔍 Network-Wide Ad Blocking 🔍 Upstream DNS 🔍 pi.hole Admin 🔍 Tracker Blocking
🎙️ Full Transcript — tap to expand

Step-by-Step Troubleshooting Guide & Solutions - Install Pi-hole on Ubuntu. On-screen demonstration by Technical Anshu.

Install Pi-hole on Ubuntu step by step: static IP, the official installer, upstream DNS, pointing your router at it, and the honest limits of DNS level blocking.

(transcript ends here on the source page)

❓ Frequently Asked Questions

Is this tutorial 100% free to follow?

Yes! All guides and methods demonstrated by Technical Anshu use free, legal, and educational resources.

Can beginners follow this guide?

Absolutely! Every step is demonstrated on-screen with detailed instructions so anyone can follow along easily.

Where can I ask questions if I get stuck?

Leave a comment directly on the YouTube video, and our community and Technical Anshu will help you out.

🚀 Watch the Full Tutorial on YouTube

🚀 Watch the full step-by-step video tutorial on YouTube: https://www.youtube.com/watch?v=GXPTFr23oMc

Subscribe to Technical Anshu for IT support, Windows troubleshooting, and server management.

▶️ Watch Full Video
This tutorial is based on Technical Anshu's Install Pi-hole on Ubuntu video • Stuck on any step? Ask in the video comments — you will get help there 🙏