<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pi-Hole on blog.iankulin.com</title><link>https://blog.iankulin.com/tags/pi-hole/</link><description>Recent content in Pi-Hole on blog.iankulin.com</description><generator>Hugo</generator><language>en-AU</language><lastBuildDate>Mon, 13 Feb 2023 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.iankulin.com/tags/pi-hole/index.xml" rel="self" type="application/rss+xml"/><item><title>Local host names with Pi-hole</title><link>https://blog.iankulin.com/local-host-names-with-pi-hole/</link><pubDate>Mon, 13 Feb 2023 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/local-host-names-with-pi-hole/</guid><description>&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-02-04-at-5.46.22-pm.jpg" alt=""&gt;&lt;/p&gt;
&lt;p&gt;I run an instance of Pi-hole as a network-wide advert and surveillance blocker. It also has a setting to block individual domain which I use to force myself to really consider if 30 minutes of &lt;a href="https://old.reddit.com/r/homelab/"&gt;Reddit&lt;/a&gt; is a good idea when I should probably just be going to bed.&lt;/p&gt;
&lt;p&gt;As I&amp;rsquo;ve increased the number of real and virtual devices on my network, it&amp;rsquo;s getting to be a pain remembering all of their IP addresses. So I&amp;rsquo;d like to have DNS entries for them, for example I&amp;rsquo;d much rather:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#d8dee9;background-color:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ssh ian@vm100-dockhost
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;than&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#d8dee9;background-color:#2e3440;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;ssh ian@192.168.100.29
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Luckily, since Pi-hole works by being a DNS server (who drops requests for domains it doesn&amp;rsquo;t like) it has the capability of handling these local names.&lt;/p&gt;
&lt;h4 id="how-to-set-up"&gt;How to set up&lt;/h4&gt;
&lt;p&gt;Down the left side of the Pi-hole interface, there&amp;rsquo;s a link for Local DNS | DNS Records. Click on that for this screen, then input the name you&amp;rsquo;d like to use and the IP address it should go to. I use the device host names so there&amp;rsquo;s less confusion, but there&amp;rsquo;s no rule for this - you can use whatever you like.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2023-02-04-at-6.05.02-pm.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-02-04-at-6.05.02-pm.png" width="900" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2023-02-04-at-6.08.26-pm.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-02-04-at-6.08.26-pm.png" width="900" alt=""&gt;&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>