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.
📑Chapters
- Why the address comes first — Pi-hole needs a fixed IP
- Updating Ubuntu and running the official installer
- Choosing an upstream DNS provider in the setup screens
- The default blocklist, the static IP confirmation and the admin password
- Pointing the router's DNS at the Pi-hole machine
- Verifying from a phone or laptop — live queries on the dashboard
- The honest limits — what DNS-level blocking cannot do
📋 Overview & Step-by-Step Guide
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).
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:
sudo apt updateThen run the installer exactly as published on pi-hole.net:
curl -sSL https://install.pi-hole.net | bashThe 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.
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.
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.
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.
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:
http://pi.hole/adminYou 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.
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.
🏷️Topic Search Variables & Keywords
🎙️ 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