<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Dns on blog.iankulin.com</title><link>https://blog.iankulin.com/tags/dns/</link><description>Recent content in Dns on blog.iankulin.com</description><generator>Hugo</generator><language>en-AU</language><lastBuildDate>Mon, 30 Dec 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://blog.iankulin.com/tags/dns/index.xml" rel="self" type="application/rss+xml"/><item><title>Moving a domain from Wordpress</title><link>https://blog.iankulin.com/moving-a-domain-from-wordpress/</link><pubDate>Mon, 30 Dec 2024 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/moving-a-domain-from-wordpress/</guid><description>&lt;p&gt;I love the convenience of a hosted blog on wordpress.com, but one of the justifications for my &amp;lsquo;investment&amp;rsquo; in homelab hardware and learning time was that I&amp;rsquo;d reduce my spend on hosted platforms by self-hosting them. I&amp;rsquo;ve already quit Evernote and dropped back to the free plan on Dropbox by building systems to replace them for less money and more data sovereignty. And now, the recent &lt;a href="https://techcrunch.com/2024/09/25/wordpress-org-bans-wp-engine-blocks-it-from-accessing-its-resources/"&gt;Wordpress drama&lt;/a&gt; has made me uneasy about Matt having control of domains I&amp;rsquo;ve got registered with wordpress.&lt;/p&gt;
&lt;p&gt;For the moment, I&amp;rsquo;m leaving content there, but I&amp;rsquo;d like to keep my options open for the future, so that means moving any domains to an independent registrar, in my case, &lt;a href="https://porkbun.com/"&gt;porkbun&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Wordpress have a &lt;a href="https://wordpress.com/support/domains/transfer-domain-registration/"&gt;good article&lt;/a&gt; explaining their part of the process (kudos to them for not trying to make it difficult) but I ran into a bump not mentioned there, so it&amp;rsquo;s worth writing out the steps for future travelers.&lt;/p&gt;
&lt;h4 id="make-sure-your-email-is-correct"&gt;Make sure your email is correct&lt;/h4&gt;
&lt;p&gt;It probably is fine, but this process is going to rely on you having control of the email address attached to your wordpress account. If you don&amp;rsquo;t currently receive the emails for renewals etc, then you need to fix that first. Registrars like to be careful that they are not giving away people&amp;rsquo;s domains to bad actors, so there will be a bit of a &amp;ldquo;verify you own this email that is the contact for the domain&amp;rdquo; dance as part of this process.&lt;/p&gt;
&lt;h4 id="be-settled"&gt;Be settled&lt;/h4&gt;
&lt;p&gt;For reasons outside WordPress&amp;rsquo;s control, you can&amp;rsquo;t be moving domains around all the time. It needs to have been with the current registrar for 60 days. If not, you&amp;rsquo;ll just need to wait that out.&lt;/p&gt;
&lt;p&gt;Even if that&amp;rsquo;s not your situation, still keep in mind this transfer will take about a week. There are ways of pointing a domain elsewhere a bit quicker, but actually moving it takes five days or more.&lt;/p&gt;
&lt;h4 id="turn-the-transfer-lock-off"&gt;Turn the transfer lock off&lt;/h4&gt;
&lt;p&gt;Most domain registrars allow you to (probably be default) &lt;a href="https://www.icann.org/resources/pages/locked-2013-05-03-en"&gt;&amp;rsquo;lock&amp;rsquo; a domain&lt;/a&gt; to prevent changes. To get to this on Wordpress, go into your site, and look in &amp;ldquo;Upgrades&amp;rdquo; | &amp;ldquo;Domains&amp;rdquo; for &amp;ldquo;Transfer&amp;rdquo;. There&amp;rsquo;s a toggle to turn that off.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2024-11-09-at-5.19.45-pm.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2024-11-09-at-5.19.45-pm.png" width="900" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is also where you can request the &amp;ldquo;Authorization Code&amp;rdquo;. This is the key that you&amp;rsquo;ll take over to your new domain registrar. But don&amp;rsquo;t do that yet - that&amp;rsquo;s what I did and got this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2024-11-09-at-5.29.57-pm.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2024-11-09-at-5.29.57-pm.png" width="900" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Lol. What?! Someone objected by fax to me moving my domain? I feel like the only people who could have done that to this transfer I initiated two seconds ago could be Wordpress.&lt;/p&gt;
&lt;h4 id="turn-private-registration-off"&gt;Turn Private Registration off&lt;/h4&gt;
&lt;p&gt;To their credit (again) this was explained in another email shortly after:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2024-11-16-at-7.02.20-am.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2024-11-16-at-7.02.20-am.png" width="900" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Ah, so I need to turn &amp;lsquo;private registration&amp;rsquo; off. This is the mechanism that hides your personal details as a domain owner from scammers and grifters. Apparently it has to be &amp;lsquo;off&amp;rsquo; to transfer the site. This is not a source of stress to me, as soon as the domain is transferred to PorkBun, the apparent owner of the domain when someone does a &lt;code&gt;whois&lt;/code&gt; on it, will be &amp;ldquo;Private By Design LLC&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;Once again, this setting is in the Wordpress site settings under &amp;ldquo;Domain&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2024-11-09-at-5.32.29-pm.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2024-11-09-at-5.32.29-pm.png" width="900" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="get-your-authorization-code"&gt;Get your Authorization Code&lt;/h4&gt;
&lt;p&gt;Now is the time to hit the button in Wordpress to request the &amp;ldquo;Authorization Code&amp;rdquo;. It will be sent to the email attached to the domain. This is the hex string you&amp;rsquo;ll need to take to your domain registrar to request the transfer.&lt;/p&gt;
&lt;h4 id="start-the-transfer"&gt;Start the transfer&lt;/h4&gt;
&lt;p&gt;I guess every domain registrar will have a slightly different set up. With porkbun, I just went to &lt;a href="https://porkbun.com/transfer"&gt;https://porkbun.com/transfer&lt;/a&gt; and entered the domain name and the authorisation code. They did charge me $11 for this, then advised that the transfer would take about five days. Maybe that&amp;rsquo;s built into the domain transfer system to allow more people to object by fax.&lt;/p&gt;
&lt;p&gt;On the porkbun status page for the transfer, I was able to set up an A record to the wordpress IP where by blog still lives, so that the second the transfer went through, it would be set up to direct traffic there with a minimal downtime. I guess in this case that would have no effect since the wordpress name servers would still be in place (see further down), but it&amp;rsquo;s a good idea since often when you&amp;rsquo;re moving a domain, the losing registrar would be deleting your name-server entry.&lt;/p&gt;
&lt;img src="https://blog.iankulin.com/images/5later.jpg" width="300" alt=""&gt;
&lt;p&gt;Once the email came through on the sixth day, I checked the domain was still pointing to the blog, and it was all good. But we&amp;rsquo;re not done yet.&lt;/p&gt;
&lt;h4 id="change-the-nameservers"&gt;Change the nameservers&lt;/h4&gt;
&lt;p&gt;Although I&amp;rsquo;ve now got control of the domain, we&amp;rsquo;re still using WordPress&amp;rsquo;s nameservers. That&amp;rsquo;s not a big deal for me, but I do want to bring them over to porkbun so it&amp;rsquo;s the same setup as all my other domains. Before I nuke the wordpress nameservers, we need to check what records are in it.&lt;/p&gt;
&lt;p&gt;First step is to see who are the nameservers for a domain. We do this with the &lt;code&gt;dig NS &amp;lt;domain-name&amp;gt;&lt;/code&gt; command:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2024-11-16-at-8.27.37-am.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2024-11-16-at-8.27.37-am.png" width="900" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this example the name servers are &lt;code&gt;b.iana-servers.net&lt;/code&gt; and &lt;code&gt;a.iana-servers.net&lt;/code&gt; In the case of your wordpress blog they are probably &lt;code&gt;ns1.wordpress.com&lt;/code&gt; etc.&lt;/p&gt;
&lt;p&gt;Once you know the name of the nameservers you can query them with the domain name to see what the records are. The most important will be the A records, but you probably want to go ahead and check the MX (mail) and TXT records as well so you can reproduce them on the new registrar.&lt;/p&gt;
&lt;p&gt;This is done with &lt;code&gt;dig @&amp;lt;name-server&amp;gt; &amp;lt;domain-name&amp;gt; &amp;lt;record-type&amp;gt;&lt;/code&gt; for example &lt;code&gt;dig @b.iana-servers.net example.com A&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2024-11-16-at-8.33.21-am.jpg" alt=""&gt;&lt;/p&gt;
&lt;p&gt;In this case there is a single A record pointing the domain to 93.184.215.14 We need to note all of these to reproduce them in the domain settings in your new registrar. Again this is going to be different for each one, but if you&amp;rsquo;ve ever pointed a domain anywhere, you&amp;rsquo;ll know how to do it on yours.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2024-11-16-at-8.40.11-am-1.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2024-11-16-at-8.40.11-am-1.png" width="900" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="change-the-nameservers-1"&gt;Change the nameservers&lt;/h4&gt;
&lt;p&gt;Now those records are all in, it&amp;rsquo;s time to change the nameservers. There will be an option somewhere in your domain management tools at the registrar to allow for this. In my case, I&amp;rsquo;ll be switching to porkbun&amp;rsquo;s default ones.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://blog.iankulin.com/images/screen-shot-2024-11-16-at-8.45.30-am.png"&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2024-11-16-at-8.45.30-am.png" width="900" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4 id="profit"&gt;Profit&lt;/h4&gt;
&lt;p&gt;That all was a bit of a dance, but it feels good to be in control of the domain so I can redirect it in the future if needed.&lt;/p&gt;
&lt;p&gt;Edit from the future: This (pointing the domain I now controlled at my wordpress.com blog) died after a couple of weeks. I&amp;rsquo;m not sure if they changed something, but when I went into the wordpress settings to check it was still set up to use an external domain name, it greeted me with an &amp;lsquo;upgrade&amp;rsquo; offer to turn that on at an annual cost greater than my old plan. So, I had to hurriedly set up a wordpress instance on a VPS - which turned out to be not much drama and will probably be the subject of a future post.&lt;/p&gt;</description></item><item><title>Solved DNS Issues - Proxmox, LXC, Ubuntu, Tailscale</title><link>https://blog.iankulin.com/solved-dns-issues-proxmox-lxc-ubuntu-tailscale/</link><pubDate>Fri, 06 Oct 2023 00:00:00 +0000</pubDate><guid>https://blog.iankulin.com/solved-dns-issues-proxmox-lxc-ubuntu-tailscale/</guid><description>&lt;p&gt;&lt;a href="https://i.imgur.com/WmRbmf5.png"&gt;&lt;img src="https://blog.iankulin.com/images/wmrbmf5.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ve picked up an new TP-Link WAP with Omada, so I wanted to spin up an Ubuntu 20.04 LXC to run the controller software in, and ended up spending a couple of hours figuring out why things where not working.&lt;/p&gt;
&lt;p&gt;The initial problem was I was having connectivity issues pulling down the updates for all the packages required. I went down a bit of a tangent because I installed an apt cache the other day, so I was looking for problems there. Eventually I narrowed it down to DNS not working and started A/B testing like this:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-08-26-at-4.49.24-pm.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;A more seasoned sysadmin probably would have been looking at the &lt;code&gt;/etc/resolv.conf&lt;/code&gt; a bit earlier where the glaring hint was. I&amp;rsquo;ll get to that in a second, but first a bit about my setup.&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m running Proxmox 8.0.4 on one of my HP G2 800 Minis (love these little power-frugal &lt;a href="https://blog.iankulin.com/moving-a-vm-between-two-proxmox-hosts/"&gt;gems&lt;/a&gt;) and I use Tailscale to tie all my network (my homelab here, and two remote locations) together. The Tailscale version on this node is 1.48.1&lt;/p&gt;
&lt;p&gt;You can see in the table above, that a LXC using the Ubuntu 20.04 template had no domain name resolution, but the Debian 12 (and Debian 11 I tried earlier did). The &lt;code&gt;/etc/resolv.conf&lt;/code&gt; on the Debian containers looked like this:&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;nameserver 192.168.100.1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And on the Ubuntu container&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;# --- BEGIN PVE ---
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;search tailaf96a.ts.net
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;nameserver 100.100.100.100
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;# --- END PVE ---
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;192.168.100.1&lt;/code&gt; is my local DNS which is provided from the DHCP, but clearly Ubuntu is not using that. The &lt;code&gt;PVE&lt;/code&gt; comments tells me it&amp;rsquo;s Proxmox messing with my container, and that&amp;rsquo;s the Tailscale DNS server number in there. The container does not have a route to &lt;code&gt;100.100.100.100&lt;/code&gt; so that DNS is not going to be able to resolved anything.&lt;/p&gt;
&lt;p&gt;So, that&amp;rsquo;s a bit weird, but easily fixed by just editing this back to set the nameserver to &lt;code&gt;192.160.100.1&lt;/code&gt; right? Well, yes - if you do that, it works, but then as soon as the container is rebooted, the Tailnet DNS gets written back in. Those blocky PVE comments are probably part of the automated system for doing that. So, what&amp;rsquo;s going on here?&lt;/p&gt;
&lt;p&gt;There&amp;rsquo;s two screens for network configuration when you&amp;rsquo;re creating an &lt;a href="https://en.wikipedia.org/wiki/RAS_syndrome"&gt;LXC container&lt;/a&gt; in the Proxmox GUI.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-08-26-at-4.55.54-pm-1.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://blog.iankulin.com/images/screen-shot-2023-08-26-at-4.56.03-pm-1.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;There&amp;rsquo;s no option in the GUI to just say &lt;em&gt;&amp;ldquo;Use the DNS settings provided by the DHCP server&amp;rdquo;&lt;/em&gt;, although we&amp;rsquo;ll see later, there is a work around for this.&lt;/p&gt;
&lt;p&gt;Since I&amp;rsquo;d been leaving the &lt;code&gt;DNS domain:&lt;/code&gt; set to &lt;code&gt;use host settings&lt;/code&gt;. You might reasonably wonder what the Proxmox node /etc/resolv.conf looks like:&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;# resolv.conf(5) file generated by tailscale
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;# For more info, see https://tailscale.com/s/resolvconf-overwrite
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;# DO NOT EDIT THIS FILE BY HAND -- CHANGES WILL BE OVERWRITTEN
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;nameserver 100.100.100.100
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;search tailaf96a.ts.net local
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;So actually, although I was thinking there must be some bug with Ubuntu since Debian was working how I expected, it&amp;rsquo;s the other way around - Ubuntu and Proxmox are working together to do exactly what the settings have told it to - to use the host settings. And actually, the Debian containers are not working correctly (although they were working how I expected). The process of Proxmox making these types of changes is documented in the &lt;a href="https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_guest_operating_system_configuration"&gt;Admin Guide&lt;/a&gt;. I&amp;rsquo;d actually never seen that guide till today (although there is a large &amp;ldquo;Documentation&amp;rdquo; button in the top right of the web GUI), but it looks pretty great so I&amp;rsquo;ll be revisiting it.&lt;/p&gt;
&lt;h3 id="solution-1"&gt;Solution 1&lt;/h3&gt;
&lt;p&gt;The first solution is just to specify the DNS address in the GUI - then our container works exactly as the PVE developers intended. A slight downside is that if I change the network configuration in future and update the DNS address in the DHCP server (which is the logical way to do that) then it won&amp;rsquo;t update for this container and domain name resolution will stop working for it.&lt;/p&gt;
&lt;p&gt;If I do that, the &lt;code&gt;/etc/resolv.conf&lt;/code&gt; looks like this:&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;# --- BEGIN PVE ---
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;search tailaf96a.ts.net
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;nameserver 192.168.100.1
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;# --- END PVE ---
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;And it all works fine.&lt;/p&gt;
&lt;h3 id="solution-2"&gt;Solution 2&lt;/h3&gt;
&lt;p&gt;This &lt;a href="https://forum.proxmox.com/threads/lxc-dns-from-dhcp.36200/"&gt;post on the Proxmox Forums&lt;/a&gt; lead me to a second solution. It&amp;rsquo;s possible to stop Proxmox from adding the host by adding a little signal file with&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;touch /etc/.pve-ignore.resolv.conf
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;When Proxmox sees that. it won&amp;rsquo;t mess with the &lt;code&gt;/etc/resolv.conf&lt;/code&gt; file, so if that&amp;rsquo;s been edited to:&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;nameserver 192.168.100.1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;It will be left alone, and things will work fine. This is not quite what I&amp;rsquo;d like - I&amp;rsquo;d really prefer it picks everything up from DHCP, but I don&amp;rsquo;t know enough about how that works in Linux to fix it, yet.&lt;/p&gt;</description></item><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>