Fundamentals 4 min read

How to Block Ads Using Pi-Hole and NanoPi Neo2

ai.rs Dec 9, 2018
How to Block Ads Using Pi-Hole and NanoPi Neo2 illustration

NanoPi Neo2: The Perfect Pi-Hole Host

The NanoPi Neo2 by FriendlyARM is a tiny ARM computer that punches above its weight. Unlike the Raspberry Pi 3 Model B+ which has "only" 300 Mbit Ethernet (shared over USB 2.0), the NanoPi Neo2 has a true Gigabit Ethernet port — making it ideal for a network DNS device.

NanoPi Neo2 with Pi-Hole dashboard

What Makes It Great for Pi-Hole

  • Allwinner H5 CPU — quad-core ARM Cortex-A53
  • Gigabit Ethernet — direct, not shared over USB
  • Aluminium case with passive heatsink — silent, no fan needed
  • OLED display — shows IP, uptime, and stats at a glance
  • Low power — runs on 5V/2A micro-USB

What Is Pi-Hole?

Pi-Hole is an open-source DNS sinkhole that blocks advertisements and malware at the network level. Instead of installing ad blockers on every device, you point your network's DNS to the Pi-Hole and it blocks ad domains for all devices — phones, tablets, smart TVs, IoT devices, everything.

Pi-Hole statistics dashboard showing blocked queries

How It Works

  1. A device on your network requests ads.example.com
  2. The request goes to your Pi-Hole (instead of a public DNS)
  3. Pi-Hole checks its blocklist — if the domain is an ad/tracker, it returns 0.0.0.0
  4. The ad never loads — no content is downloaded
  5. Legitimate domains pass through to upstream DNS normally

Installation

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

After installation, configure your devices to use the Pi-Hole's IP as their DNS server. You can either:

  • Set it manually on each device
  • Configure your router's DHCP to distribute the Pi-Hole's IP as the DNS server (recommended — covers all devices automatically)

Results

After running Pi-Hole for a few days, the dashboard shows just how much of your internet traffic is ads and trackers. It's common to see 30-40% of all DNS queries blocked — that's bandwidth saved and privacy protected across your entire network.

The Bigger Picture

Blocking ads at the DNS level is a clever application of a simple idea: intercept requests and make smart decisions about them. This same pattern appears everywhere in AI — from filtering spam to routing customer queries to the right AI model. The tools change (from DNS blocklists to neural networks), but the principle of intelligent request handling remains the same.


This article is from the ai.rs archive (originally published on the old ai.rs tech blog). Today, ai.rs builds custom AI assistants for businesses.

Explore what we do now:

Ready to put this into practice?

Understanding the fundamentals is one thing — building something for your business is another. See where you stand.

Take the AI Readiness Check
Share: Post Share

Read next

Research

DeepSeek V4.1 Flash on Two DGX Sparks: 2.9-Bit, 1.9× Faster Than V4 Flash, and What the Bits Cost

In September we said V4.1-Flash could not fit two DGX Sparks and a 2 or 3-bit re-quantisation would decode no faster than V4-Flash. We ran the 1017 retrain at 2.9 bits per weight on the same pair with a native engine: 1.6 to 1.9× faster per token, every quality harness tied, hard code ahead of V4, needle found at 976K tokens. The bits cost hard code only; the price is memory headroom, concurrency, and about 1.6× the power under load. It reads documents too.

13 min read
AI News

Muse Spark Open 816B: How Much VRAM, and Does It Beat DeepSeek V4 Flash?

Meta's Muse Spark Open is 816B parameters, open weights, free on Together AI for three days. Its own NVFP4 build is 496 GiB, 2.4× what two DGX Sparks can give a model, and the bf16 release is 1.5 TB. We ran it through the four harnesses DeepSeek-V4-Flash passed on our pair: same scores on everything pass or fail, a little tighter prose, three times the decode speed, from a rack.

10 min read
AI News

Axera AX8860 vs DGX Spark: Sipeed's MaixStation Claims, Checked

Sipeed says its MaixStation, built on Axera's new AX8860, beats the DGX Spark on Qwen 27B by 25% on prefill and 30% on decode at 40 W and half the price. The chip copies the GB10's memory bus to the digit, so we checked the claim against the bus: the low end is plausible, the high end is the bus at 100%, and nothing ships before a Kickstarter at year end.

8 min read