<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>DNS &#8211; Armand IT</title>
	<atom:link href="https://www.armandit.com/tag/dns/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.armandit.com</link>
	<description>Azure at work, Kubernetes at home</description>
	<lastBuildDate>Sun, 29 Nov 2026 22:36:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://www.armandit.com/wp-content/uploads/2026/11/armandit-icon-512-32x32.png</url>
	<title>DNS &#8211; Armand IT</title>
	<link>https://www.armandit.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How I Use Pi-hole to Keep My Kids Safe Online (and Kill Ads in Their Games)</title>
		<link>https://www.armandit.com/2026/11/29/pi-hole-kids-safe-network/</link>
		
		<dc:creator><![CDATA[Armand Hatting]]></dc:creator>
		<pubDate>Sun, 29 Nov 2026 22:36:34 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Ad Blocking]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Homelab]]></category>
		<category><![CDATA[Parental Controls]]></category>
		<category><![CDATA[Pi-hole]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<guid isPermaLink="false">https://www.armandit.com/?p=789</guid>

					<description><![CDATA[A Raspberry Pi with Pi-hole blocks ads in mobile games, adult content, gambling and DNS bypass for every device in the house. My strict-by-default setup, the blocklists I use, test results, and what DNS filtering can't do.]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Anyone with kids and a tablet knows the drill: a free game, and every thirty seconds an ad. Sometimes for another game, sometimes for something you really don&#8217;t want your kids to see. Add websites that are one tap away from an innocent search, and apps that quietly phone home to a dozen tracking companies.</p>



<p class="wp-block-paragraph">At home I solve most of this with one small device: a <strong>Pi-hole</strong> on a Raspberry Pi. In this post I&#8217;ll show exactly how it&#8217;s set up, what it blocks (I tested it), and just as important, what it <em>can&#8217;t</em> do.</p>



<h2 class="wp-block-heading">What Pi-hole does</h2>



<p class="wp-block-paragraph">Every device on your network constantly looks up names: before a game can show an ad from <code>ads.example-network.com</code>, it has to ask a DNS server for that name&#8217;s IP address. Pi-hole <em>is</em> that DNS server. It answers normally for everything, except for names on its blocklists. For those it answers <code>0.0.0.0</code>: nowhere. The ad never loads, the tracker never reports, the website never opens.</p>



<p class="wp-block-paragraph">Because it works at the network level, it protects every device at once: tablets, phones, consoles, smart TVs, without installing anything on them. And it works inside apps and games, where browser ad blockers can&#8217;t reach.</p>



<h2 class="wp-block-heading">My setup</h2>



<ul class="wp-block-list">
<li><strong>Hardware:</strong> a Raspberry Pi 3 B+ (yes, from 2018). With over 600,000 blocked domains it uses about 16% of its memory and is bored most of the day.</li>

<li><strong>Software:</strong> Pi-hole v6, forwarding allowed lookups to Cloudflare (<code>1.1.1.1</code>).</li>

<li><strong>Network:</strong> the router hands out the Pi-hole as the only DNS server, so every device uses it automatically.</li>

<li><strong>Privacy:</strong> query logging is switched off. I want to filter, not to read along with what my family does online.</li>
</ul>



<h2 class="wp-block-heading">The key idea: strict by default</h2>



<p class="wp-block-paragraph">Pi-hole can apply different blocklists to different groups of devices. Most guides set up a special group for the kids&#8217; devices. I did it the other way around:</p>



<ul class="wp-block-list">
<li><strong>Every device Pi-hole doesn&#8217;t know</strong> lands in the <em>Default</em> group, which gets the strictest filtering.</li>

<li><strong>The adults&#8217; own devices</strong> are added by name to a lighter group that only blocks ads and trackers.</li>
</ul>



<p class="wp-block-paragraph">Why this way? Because the risky devices are exactly the ones you forget: a new tablet from a birthday, a friend&#8217;s phone, a console, a smart TV. And modern phones and tablets use a <em>private Wi-Fi address</em> that differs from the hardware address, so you can&#8217;t reliably recognize a device anyway. With strict-by-default, anything new is protected from the first minute, and only devices I consciously add get more freedom.</p>



<figure class="wp-block-table"><table><thead><tr><th>Group</th><th>Who</th><th>Blocklists</th></tr></thead><tbody><tr><td>Default (strict)</td><td>Every unknown device: kids&#8217; tablets and consoles, guests, new devices</td><td>StevenBlack hosts, HaGeZi Ultimate, HaGeZi NSFW, HaGeZi Gambling, HaGeZi DNS bypass, and YouTube</td></tr><tr><td>Normal</td><td>The adults&#8217; named devices</td><td>HaGeZi Multi (ads, trackers, malware)</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">The blocklists</h2>



<p class="wp-block-paragraph">All lists except one come from <a href="https://github.com/hagezi/dns-blocklists" target="_blank" rel="noopener">HaGeZi&#8217;s DNS blocklists</a>: well maintained, updated several times a day, and with very few false positives.</p>



<ul class="wp-block-list">
<li><strong>StevenBlack hosts</strong> and <strong>HaGeZi Ultimate</strong>: ads, trackers, malware and phishing. Ultimate is HaGeZi&#8217;s most aggressive level, and it&#8217;s what catches the ad networks inside games.</li>

<li><strong>HaGeZi NSFW</strong>: adult content.</li>

<li><strong>HaGeZi Gambling (medium)</strong>: casinos and betting, including the Dutch ones. The full list is seven times bigger; medium covers everything I tested and keeps the Pi fast.</li>

<li><strong>HaGeZi DoH/VPN/Proxy bypass</strong>: encrypted DNS services, VPNs and proxies. More on why below.</li>
</ul>



<p class="wp-block-paragraph">Adding them is a matter of pasting the URL under <em>Lists</em> in the Pi-hole interface, assigning the right groups and running <em>Update Gravity</em>:</p>



<pre class="wp-block-code language-none"><code>https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/ultimate.txt
https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/nsfw.txt
https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/gambling.medium.txt
https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/doh-vpn-proxy-bypass.txt</code></pre>



<p class="wp-block-paragraph">YouTube is blocked for the strict group with two regex rules under <em>Domains</em>, so it doesn&#8217;t become an endless video feed on the kids&#8217; devices:</p>



<pre class="wp-block-code language-none"><code>(\.|^)youtube\.com$
(\.|^)googlevideo\.com$</code></pre>



<h2 class="wp-block-heading">Ads in mobile games</h2>



<p class="wp-block-paragraph">Free games earn money through advertising SDKs: libraries from ad networks that fetch ads from the network&#8217;s own servers. Those servers have recognizable names, and that is exactly what DNS blocking is good at. I tested the big ones from a device in the strict group:</p>



<figure class="wp-block-table"><table><thead><tr><th>Ad network</th><th>Used in</th><th>Result</th></tr></thead><tbody><tr><td>Google AdMob</td><td>A huge share of Android and iOS games</td><td>&#10003; Blocked</td></tr><tr><td>Unity Ads</td><td>Games built with Unity</td><td>&#10003; Blocked</td></tr><tr><td>AppLovin</td><td>Many casual and puzzle games</td><td>&#10003; Blocked</td></tr><tr><td>ironSource</td><td>Mobile games, ad mediation</td><td>&#10003; Blocked</td></tr><tr><td>Vungle (Liftoff)</td><td>Video ads in games</td><td>&#10003; Blocked</td></tr><tr><td>Chartboost</td><td>Ads for other games</td><td>&#10003; Blocked</td></tr><tr><td>InMobi</td><td>Mobile ads</td><td>&#10003; Blocked</td></tr><tr><td>Meta Audience Network</td><td>Ads in apps</td><td>&#10003; Blocked</td></tr><tr><td>Adjust, Branch, Firebase Analytics</td><td>Tracking and attribution</td><td>&#10003; Blocked</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">Before I added the stricter lists, the lighter ads-only list let Vungle, Chartboost, InMobi and Adjust through. The difference between blocklists is real, so test with the networks that matter to you.</p>



<div class="wp-block-group is-style-callout-warning has-global-padding is-layout-constrained wp-block-group-is-layout-constrained">
<p class="wp-block-paragraph"><strong>What your kids will notice</strong> Games with <em>rewarded ads</em> (&#8220;watch a video for 50 extra coins&#8221;) will say no ad is available. Most games simply carry on; the occasional game refuses to work without its ad server. For those you can allow a single domain, which you find in Pi-hole&#8217;s query log (temporarily switch logging on while testing).</p>
</div>



<h2 class="wp-block-heading">Results: what is blocked and what still works</h2>



<figure class="wp-block-table"><table><thead><tr><th>Category</th><th>Tested with</th><th>Strict group</th></tr></thead><tbody><tr><td>Game ads</td><td>AdMob, Unity Ads, AppLovin, ironSource, Vungle, Chartboost, InMobi</td><td>&#10003; Blocked</td></tr><tr><td>Adult content</td><td>Large adult websites</td><td>&#10003; Blocked</td></tr><tr><td>Gambling</td><td>International and Dutch casino and betting sites</td><td>&#10003; Blocked</td></tr><tr><td>DNS bypass</td><td>Google, Cloudflare, Quad9 and OpenDNS encrypted DNS</td><td>&#10003; Blocked</td></tr><tr><td>YouTube</td><td>youtube.com</td><td>&#10003; Blocked</td></tr><tr><td>Games and stores</td><td>Roblox, Minecraft, Nintendo, PlayStation, App Store, Play Store</td><td>Works</td></tr><tr><td>School and info</td><td>Wikipedia</td><td>Works</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">You can test this yourself from any computer: ask your Pi-hole directly and look at the answer. <code>0.0.0.0</code> means blocked.</p>



<pre class="wp-block-code language-bash"><code>nslookup googleads.g.doubleclick.net 192.168.0.37
nslookup www.roblox.com 192.168.0.37</code></pre>



<h2 class="wp-block-heading">Why block encrypted DNS?</h2>



<p class="wp-block-paragraph">Pi-hole only works if devices actually ask <em>it</em>. Browsers and apps increasingly use <strong>DNS over HTTPS</strong>: they send their lookups encrypted to Google or Cloudflare instead, straight past your Pi-hole. Sometimes that&#8217;s a setting a curious kid finds, sometimes the app does it on its own.</p>



<p class="wp-block-paragraph">The bypass list blocks the names of those encrypted DNS services, plus well-known VPN and proxy services. Pi-hole also answers the special domains that Firefox and Apple&#8217;s iCloud Private Relay check first, so those fall back to normal DNS by themselves.</p>



<h2 class="wp-block-heading">What Pi-hole can&#8217;t do</h2>



<p class="wp-block-paragraph">DNS filtering is a strong first layer, not complete parental control. Be honest with yourself about the gaps:</p>



<ul class="wp-block-list">
<li><strong>Mobile data:</strong> on 4G or 5G a phone doesn&#8217;t use your home network at all. Use the parental controls built into the device (Screen Time on iOS, Google Family Link on Android) for phones that leave the house.</li>

<li><strong>Hard-coded DNS servers:</strong> a device can ask <code>8.8.8.8</code> directly by IP address, and no blocklist stops that. Close that gap in your router: only allow DNS traffic (port 53, and port 853 for DNS over TLS) to the Pi-hole.</li>

<li><strong>Content inside allowed apps:</strong> chat in an online game, or a video inside an app that is allowed, can&#8217;t be filtered by name. Age settings in the game or platform matter there.</li>

<li><strong>Ads from the same domain as the content:</strong> some platforms serve ads from their own servers. DNS can&#8217;t separate those from the content without blocking both.</li>
</ul>



<p class="wp-block-paragraph">And the most important layer isn&#8217;t technical at all: talking with your kids about what they see online. The Pi-hole just makes sure those conversations are about the exceptions instead of every thirty seconds.</p>



<h2 class="wp-block-heading">Getting started</h2>



<ol class="wp-block-list">
<li>Install Pi-hole on a Raspberry Pi (any model from the 3 onwards is enough) or in a container, following the <a href="https://docs.pi-hole.net/" target="_blank" rel="noopener">official documentation</a>.</li>

<li>Set the Pi-hole as the only DNS server in your router&#8217;s DHCP settings.</li>

<li>Add the strict blocklists to the <em>Default</em> group.</li>

<li>Create a lighter group for the adults&#8217; devices and add those devices by name under <em>Clients</em>.</li>

<li>Run <em>Update Gravity</em> and test with <code>nslookup</code>, from a device in each group.</li>

<li>In the router, block outgoing DNS that doesn&#8217;t come from the Pi-hole.</li>
</ol>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
