<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Nextdns – Yeri Tiete</title>
    <link>https://yeri.be/tag/nextdns/</link>
    <description>Yeri Tiete&#39;s blog</description>
    <language>en</language>
    <copyright>© Yeri Tiete</copyright>
    <lastBuildDate>Fri, 17 Feb 2023 22:40:09 +0100</lastBuildDate>
    <atom:link href="https://yeri.be/tag/nextdns/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>NextDNS and NetworkManager</title>
      <link>https://yeri.be/nextdns-and-networkmanager/</link>
      <pubDate>Fri, 17 Feb 2023 22:40:09 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/nextdns-and-networkmanager/</guid><enclosure url="https://static.yeri.be/2023/02/wifi.jpg" length="0" type="image/jpeg" />
      <description>&lt;p&gt;A while back, I &lt;a href=&#34;https://yeri.be/networkmanager-exit-status-1&#34;&gt;wrote about installing&lt;/a&gt; NetworkManager if &lt;a href=&#34;https://yeri.be/tag/nextdns&#34;&gt;NextDNS&lt;/a&gt; activate fails to work. &lt;/p&gt;&#xA;&lt;p&gt;Only... I realised that for some reason on Raspberry Pi (4), WiFi stopped working with the following errors:&lt;/p&gt;&#xA;&lt;pre class=&#34;wp-block-code&#34;&gt;&lt;code&gt;Feb 17 11:55:02 tyr NetworkManager&amp;#91;449]: &amp;lt;info&amp;gt;  &amp;#91;1676631302.2204] device (wlan0): state change: config -&amp;gt; failed (reason &#39;ssid-not-found&#39;, sys-iface-state: &#39;managed&#39;)&#xA;Feb 17 11:55:02 tyr NetworkManager&amp;#91;449]: &amp;lt;info&amp;gt;  &amp;#91;1676631302.7525] device (wlan0): set-hw-addr: set MAC address to 92:F3:ED:C2:8F:9B (scanning)&#xA;Feb 17 11:55:02 tyr NetworkManager&amp;#91;449]: &amp;lt;warn&amp;gt;  &amp;#91;1676631302.7559] device (wlan0): Activation: failed for connection &#39;superuser.one&#39;&#xA;Feb 17 11:55:02 tyr NetworkManager&amp;#91;449]: &amp;lt;info&amp;gt;  &amp;#91;1676631302.7562] device (wlan0): supplicant interface state: scanning -&amp;gt; disconnected&#xA;Feb 17 11:55:02 tyr NetworkManager&amp;#91;449]: &amp;lt;info&amp;gt;  &amp;#91;1676631302.7562] device (p2p-dev-wlan0): supplicant management interface state: scanning -&amp;gt; disconnected&#xA;Feb 17 11:55:02 tyr NetworkManager&amp;#91;449]: &amp;lt;info&amp;gt;  &amp;#91;1676631302.7577] device (wlan0): supplicant interface state: disconnected -&amp;gt; interface_disabled&#xA;Feb 17 11:55:02 tyr NetworkManager&amp;#91;449]: &amp;lt;info&amp;gt;  &amp;#91;1676631302.7578] device (p2p-dev-wlan0): supplicant management interface state: disconnected -&amp;gt; interface_disabled&#xA;Feb 17 11:55:02 tyr NetworkManager&amp;#91;449]: &amp;lt;info&amp;gt;  &amp;#91;1676631302.7579] device (wlan0): supplicant interface state: interface_disabled -&amp;gt; disconnected&#xA;Feb 17 11:55:02 tyr NetworkManager&amp;#91;449]: &amp;lt;info&amp;gt;  &amp;#91;1676631302.7579] device (p2p-dev-wlan0): supplicant management interface state: interface_disabled -&amp;gt; disconnected&#xA;Feb 17 11:55:02 tyr NetworkManager&amp;#91;449]: &amp;lt;info&amp;gt;  &amp;#91;1676631302.7585] device (wlan0): state change: failed -&amp;gt; disconnected (reason &#39;none&#39;, sys-iface-state: &#39;managed&#39;)&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The WiFi SSID and password (&lt;code&gt;wpa_supplicant&lt;/code&gt;) never changed, so I wasn&#39;t sure what it was. However, as most Pi&#39;s are wired I didn&#39;t pay much attention, until today.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><img src="https://static.yeri.be/2023/02/wifi.jpg" alt="NextDNS and NetworkManager"></p><p>A while back, I <a href="https://yeri.be/networkmanager-exit-status-1">wrote about installing</a> NetworkManager if <a href="https://yeri.be/tag/nextdns">NextDNS</a> activate fails to work. </p>
<p>Only... I realised that for some reason on Raspberry Pi (4), WiFi stopped working with the following errors:</p>
<pre class="wp-block-code"><code>Feb 17 11:55:02 tyr NetworkManager&#91;449]: &lt;info&gt;  &#91;1676631302.2204] device (wlan0): state change: config -&gt; failed (reason 'ssid-not-found', sys-iface-state: 'managed')
Feb 17 11:55:02 tyr NetworkManager&#91;449]: &lt;info&gt;  &#91;1676631302.7525] device (wlan0): set-hw-addr: set MAC address to 92:F3:ED:C2:8F:9B (scanning)
Feb 17 11:55:02 tyr NetworkManager&#91;449]: &lt;warn&gt;  &#91;1676631302.7559] device (wlan0): Activation: failed for connection 'superuser.one'
Feb 17 11:55:02 tyr NetworkManager&#91;449]: &lt;info&gt;  &#91;1676631302.7562] device (wlan0): supplicant interface state: scanning -&gt; disconnected
Feb 17 11:55:02 tyr NetworkManager&#91;449]: &lt;info&gt;  &#91;1676631302.7562] device (p2p-dev-wlan0): supplicant management interface state: scanning -&gt; disconnected
Feb 17 11:55:02 tyr NetworkManager&#91;449]: &lt;info&gt;  &#91;1676631302.7577] device (wlan0): supplicant interface state: disconnected -&gt; interface_disabled
Feb 17 11:55:02 tyr NetworkManager&#91;449]: &lt;info&gt;  &#91;1676631302.7578] device (p2p-dev-wlan0): supplicant management interface state: disconnected -&gt; interface_disabled
Feb 17 11:55:02 tyr NetworkManager&#91;449]: &lt;info&gt;  &#91;1676631302.7579] device (wlan0): supplicant interface state: interface_disabled -&gt; disconnected
Feb 17 11:55:02 tyr NetworkManager&#91;449]: &lt;info&gt;  &#91;1676631302.7579] device (p2p-dev-wlan0): supplicant management interface state: interface_disabled -&gt; disconnected
Feb 17 11:55:02 tyr NetworkManager&#91;449]: &lt;info&gt;  &#91;1676631302.7585] device (wlan0): state change: failed -&gt; disconnected (reason 'none', sys-iface-state: 'managed')</code></pre>
<p>The WiFi SSID and password (<code>wpa_supplicant</code>) never changed, so I wasn't sure what it was. However, as most Pi's are wired I didn't pay much attention, until today.</p>
<p>As I had one RPi where <code>nextdns activate</code> worked fine, without NetworkManager installed, and where WiFi worked, I figured there was something evil about NetworkManager (= breaks my WiFi) and NextDNS not actually needing it... </p>
<p>I reverted my changed from my previous post (and removed some extra stuff that was not needed in my case, YMMV):</p>
<div class="wp-block-comments">
<pre class="wp-block-code"><code>apt purge -y network-manager dnsmasq-base resolvconf modemmanager ppp ; apt install -y powermgmt-base openresolv ; apt autoremove -y</code></pre>
</div>
<pre class="wp-block-verse">The powermgmt-base, and modemmanager, ppp parts are likely not needed, but this is just a copy and paste of what I did.</pre>
<p>Reboot... And WiFi worked again. However, <code>nextdns activate</code> would still throw an error:</p>
<pre class="wp-block-code"><code># nextdns activate
Error: NetworkManager resolver management: exit status 5</code></pre>
<p>Going through <a rel="noreferrer noopener" href="https://github.com/nextdns/nextdns/blob/master/host/dns_linux.go" target="_blank">the source code</a> (yay for open-source) I noticed:</p>
<pre class="wp-block-code"><code>var networkManagerFile = "/etc/NetworkManager/conf.d/nextdns.conf"</code></pre>
<p>That file indeed existed on both RPis that had the <code>activate</code> issue.</p>
<p>I ran the following command...</p>
<pre class="wp-block-code"><code>rm /etc/NetworkManager/conf.d/nextdns.conf</code></pre>
<p>But that still gave the same error. But as I had purged the entire NetworkManager, I didn't need its lingering config files... So, why not rid ourselves of everything:</p>
<pre class="wp-block-code"><code>rm -r /etc/NetworkManager</code></pre>
<p>And tada... Now <code>activate</code> works fine:</p>
<pre class="wp-block-code"><code>tyr ~ # nextdns activate
tyr ~ #</code></pre>
<p>Go figure ¯\_(ツ)_/¯ </p>
]]></content:encoded>
      <category>errors</category><category>linux</category><category>software</category>
      <category>dns</category><category>nextdns</category><category>raspberrypi</category>
    </item>
    
    <item>
      <title>NetworkManager exit status 1</title>
      <link>https://yeri.be/networkmanager-exit-status-1/</link>
      <pubDate>Mon, 26 Dec 2022 21:19:59 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/networkmanager-exit-status-1/</guid><enclosure url="https://static.yeri.be/2022/12/networkManager.jpg" length="0" type="image/jpeg" />
      <description>&lt;p&gt;Recently reinstalled &lt;a href=&#34;https://yeri.be/tag/nextdns&#34;&gt;NextDNS&lt;/a&gt; on a RPi4 64bit and came across this error:&lt;/p&gt;&#xA;&lt;pre class=&#34;wp-block-code&#34;&gt;&lt;code&gt;# nextdns activate&#xA;Error: NetworkManager resolver management: exit status 1&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;It seems like &lt;a href=&#34;https://nextdns.io/?from=tuts3r6c&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34;&gt;NextDNS&lt;/a&gt; was actually running, but just throwing an error when running &lt;code&gt;nextdns activate&lt;/code&gt;. Restarting did seem to work without throwing any error.&lt;/p&gt;&#xA;&lt;p&gt;The logs showed the same error:&lt;/p&gt;&#xA;&lt;pre class=&#34;wp-block-code&#34;&gt;&lt;code&gt;Dec 20 14:06:20 tyr nextdns&amp;#91;5753]: Starting NextDNS 1.38.0/linux on :53&#xA;Dec 20 14:06:20 tyr nextdns&amp;#91;5753]: Listening on TCP/:53&#xA;Dec 20 14:06:20 tyr nextdns&amp;#91;5753]: Starting mDNS discovery&#xA;Dec 20 14:06:20 tyr nextdns&amp;#91;5753]: Listening on UDP/:53&#xA;Dec 20 14:06:21 tyr nextdns&amp;#91;5753]: Connected 45.90.28.0:443 (con=13ms tls=58ms, TCP, TLS13)&#xA;Dec 20 14:06:21 tyr nextdns&amp;#91;5753]: Connected 185.18.148.91:443 (con=12ms tls=28ms, TCP, TLS13)&#xA;Dec 20 14:06:21 tyr nextdns&amp;#91;5753]: Switching endpoint: https://dns.nextdns.io#185.18.148.91,2a04:b80:1:30::2&#xA;Dec 20 14:06:25 tyr nextdns&amp;#91;5753]: Setting up router&#xA;Dec 20 14:06:25 tyr nextdns&amp;#91;5753]: Activating&#xA;Dec 20 14:06:25 tyr nextdns&amp;#91;5753]: Activate: NetworkManager resolver management: exit status 1&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;The solution was (as root):&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><img src="https://static.yeri.be/2022/12/networkManager.jpg" alt="NetworkManager exit status 1"></p><p>Recently reinstalled <a href="https://yeri.be/tag/nextdns">NextDNS</a> on a RPi4 64bit and came across this error:</p>
<pre class="wp-block-code"><code># nextdns activate
Error: NetworkManager resolver management: exit status 1</code></pre>
<p>It seems like <a href="https://nextdns.io/?from=tuts3r6c" target="_blank" rel="noreferrer noopener">NextDNS</a> was actually running, but just throwing an error when running <code>nextdns activate</code>. Restarting did seem to work without throwing any error.</p>
<p>The logs showed the same error:</p>
<pre class="wp-block-code"><code>Dec 20 14:06:20 tyr nextdns&#91;5753]: Starting NextDNS 1.38.0/linux on :53
Dec 20 14:06:20 tyr nextdns&#91;5753]: Listening on TCP/:53
Dec 20 14:06:20 tyr nextdns&#91;5753]: Starting mDNS discovery
Dec 20 14:06:20 tyr nextdns&#91;5753]: Listening on UDP/:53
Dec 20 14:06:21 tyr nextdns&#91;5753]: Connected 45.90.28.0:443 (con=13ms tls=58ms, TCP, TLS13)
Dec 20 14:06:21 tyr nextdns&#91;5753]: Connected 185.18.148.91:443 (con=12ms tls=28ms, TCP, TLS13)
Dec 20 14:06:21 tyr nextdns&#91;5753]: Switching endpoint: https://dns.nextdns.io#185.18.148.91,2a04:b80:1:30::2
Dec 20 14:06:25 tyr nextdns&#91;5753]: Setting up router
Dec 20 14:06:25 tyr nextdns&#91;5753]: Activating
Dec 20 14:06:25 tyr nextdns&#91;5753]: Activate: NetworkManager resolver management: exit status 1</code></pre>
<p>The solution was (as root):</p>
<pre class="wp-block-code"><code>apt install network-manager resolvconf -y
systemctl enable NetworkManager
systemctl start NetworkManager
nextdns activate</code></pre>
<p>Looks like, instead of <code>resolvconf</code>, <code>openresolv</code> was installed. </p>
<p>First time I heard about <a rel="noreferrer noopener" href="https://wiki.archlinux.org/title/Openresolv" target="_blank">openresolv</a>; usually resolvconf is the default. Not entirely sure if this was the culprit (and NetworkManager not being started) but the errors are now gone. </p>
]]></content:encoded>
      <category>errors</category><category>linux</category><category>software</category>
      <category>dns</category><category>nextdns</category><category>raspberrypi</category>
    </item>
    
    <item>
      <title>NextDNS, EdgeOS and device names</title>
      <link>https://yeri.be/nextdns-edgeos-and-device-names/</link>
      <pubDate>Fri, 15 May 2020 13:02:00 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/nextdns-edgeos-and-device-names/</guid><enclosure url="https://static.yeri.be/2020/05/nextdnslogs.png" length="0" type="image/png" />
      <description>&lt;p&gt;Noticed that NextDNS was reporting old hostnames in the logs. For example old device names (devices that changed hostnames), devices that were definitely no longer on the network, or IPs that were matched to the wrong hostnames.&lt;/p&gt;&#xA;&lt;p&gt;The culprit is how EdgeOS deals with its &lt;a aria-label=&#34;hosts file (opens in a new tab)&#34; href=&#34;https://en.wikipedia.org/wiki/Hosts_%28file%29&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34; class=&#34;aioseop-link&#34;&gt;hosts file&lt;/a&gt;. Basically it just keeps all the old hosts added and just adds a new line at the end of the file. &lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><img src="https://static.yeri.be/2020/05/nextdnslogs.png" alt="NextDNS, EdgeOS and device names"></p><p>Noticed that NextDNS was reporting old hostnames in the logs. For example old device names (devices that changed hostnames), devices that were definitely no longer on the network, or IPs that were matched to the wrong hostnames.</p>
<p>The culprit is how EdgeOS deals with its <a aria-label="hosts file (opens in a new tab)" href="https://en.wikipedia.org/wiki/Hosts_%28file%29" target="_blank" rel="noreferrer noopener" class="aioseop-link">hosts file</a>. Basically it just keeps all the old hosts added and just adds a new line at the end of the file. </p>
<p>NextDNS searches for the first valid entry in that file, which is always going to be an older record.</p>
<p>So the simplest solution I found was the turn off <code>hostfile-update</code> every so often. This clears the hosts file. </p>
<p>So <code>ssh</code> into the device, run <code>configure</code>, and then run these commands:</p>
<pre class="wp-block-code"><code>set service dhcp-server hostfile-update disable
commit
set service dhcp-server hostfile-update enable
commit
save</code></pre>
<h2 class="wp-block-heading">Update 22 Jun '23:</h2>
<p>Be sure to restart NextDNS, or it won't actually publish the up-to-date client hostnames.</p>
<pre class="wp-block-code"><code>sudo /config/nextdns/nextdns restart</code></pre>
]]></content:encoded>
      <category>linux</category><category>networking</category><category>software</category>
      <category>dns</category><category>nextdns</category><category>router</category><category>ubiquiti</category>
    </item>
    
    <item>
      <title>NextDNS &#43; EdgeRouter &#43; Redirecting DNS requests</title>
      <link>https://yeri.be/nextdns-edgerouter-redirecting-dns-requests/</link>
      <pubDate>Tue, 21 Apr 2020 18:14:00 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/nextdns-edgerouter-redirecting-dns-requests/</guid><enclosure url="https://static.yeri.be/2020/04/nextdns.png" length="0" type="image/png" />
      <description>&lt;p&gt;Realised I haven&#39;t updated this in a long while (life happened).&lt;/p&gt;&#xA;&lt;p&gt;Couple of weeks ago I started to play with &lt;a href=&#34;http://nextdns.io&#34; target=&#34;_blank&#34; aria-label=&#34; (opens in a new tab)&#34; rel=&#34;noreferrer noopener&#34; class=&#34;aioseop-link&#34;&gt;NextDNS&lt;/a&gt; -- and I really recommend anyone that&#39;s something privacy minded and cares about the stuff happening on their network. &lt;/p&gt;&#xA;&lt;p&gt;I&#39;ve set up several configs (home, parents, FlatTurtle &lt;a aria-label=&#34; (opens in a new tab)&#34; href=&#34;https://blog.flatturtle.com/image/103073818135&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34; class=&#34;aioseop-link&#34;&gt;TurtleBox&lt;/a&gt; (the NUCs controlling the &lt;a aria-label=&#34; (opens in a new tab)&#34; href=&#34;https://flatturtle.com/screens&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34; class=&#34;aioseop-link&#34;&gt;screens&lt;/a&gt;)) and Servers. Once it&#39;s out of beta and better supported on Unifi and Ubiquiti hardware I might deploy it to our &lt;a aria-label=&#34; (opens in a new tab)&#34; href=&#34;https://blog.flatturtle.com/image/101035897937&#34; target=&#34;_blank&#34; rel=&#34;noreferrer noopener&#34; class=&#34;aioseop-link&#34;&gt;public WiFi&lt;/a&gt; (well, most access points don&#39;t look like that -- but you get the point) networks too. &lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><img src="https://static.yeri.be/2020/04/nextdns.png" alt="NextDNS + EdgeRouter + Redirecting DNS requests"></p><p>Realised I haven't updated this in a long while (life happened).</p>
<p>Couple of weeks ago I started to play with <a href="http://nextdns.io" target="_blank" aria-label=" (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">NextDNS</a> -- and I really recommend anyone that's something privacy minded and cares about the stuff happening on their network. </p>
<p>I've set up several configs (home, parents, FlatTurtle <a aria-label=" (opens in a new tab)" href="https://blog.flatturtle.com/image/103073818135" target="_blank" rel="noreferrer noopener" class="aioseop-link">TurtleBox</a> (the NUCs controlling the <a aria-label=" (opens in a new tab)" href="https://flatturtle.com/screens" target="_blank" rel="noreferrer noopener" class="aioseop-link">screens</a>)) and Servers. Once it's out of beta and better supported on Unifi and Ubiquiti hardware I might deploy it to our <a aria-label=" (opens in a new tab)" href="https://blog.flatturtle.com/image/101035897937" target="_blank" rel="noreferrer noopener" class="aioseop-link">public WiFi</a> (well, most access points don't look like that -- but you get the point) networks too. </p>
<p>Looking at the logs was an eye-opener seeing what goes through your network. You can play around and block (or whitelist) certain domains. </p>
<figure class="wp-block-image size-large"><a href="https://static.yeri.be/2020/04/nextdns_0x04.png" target="_blank" rel="noopener noreferrer"><img src="https://static.yeri.be/2020/04/nextdns_0x04-902x1024.png" alt="" class="wp-image-8310"/></a></figure>
<p>I figured out my <a href="https://www.devialet.com" target="_blank" aria-label=" (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">Devialet</a> does an insane amount of requests to <a href="http://cache.radioline.fr" target="_blank" aria-label=" (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">cache.radioline.fr</a> for example. This domain has a 30s TTL. It shows that the majority of my DNS requests are actually automated pings and not in any way human traffic. </p>
<p>Anyhow -- I've since installed the <a href="https://github.com/nextdns/nextdns/wiki/EdgeOS" target="_blank" aria-label=" (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">NextDNS CLI</a> straight on my <a href="https://yeri.be/edgerouter-fritzbox-ipsec" class="aioseop-link">EdgeRouter</a> Lite acting as a caching DNS server and forwarding using <a href="https://en.wikipedia.org/wiki/DNS_over_HTTPS" target="_blank" aria-label=" (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">DoH</a>. </p>
<p>I've turned off dnsmasq (<code>/etc/default/dnsmasq</code> =&gt; <code>DNSMASQ_OPTS="-p0"</code>) and have NextDNS listen to :53 directly. </p>
<p>Note that every EdgeOS update seems to wipe out the NextDNS installation, and requires a fresh install... Pain in the ass and doesn't seem like that's fixable. </p>
<p>This is my ERL NextDNS config (<code>/etc/nextdns.conf</code>)</p>
<pre class="wp-block-preformatted">hardened-privacy false
bogus-priv true
log-queries false
cache-size 10MB
cache-max-age 0s
report-client-info true
timeout 5s
listen :53
use-hosts true
setup-router false
auto-activate true
config 34xyz8
detect-captive-portals false
max-ttl 0s</pre>
<p>The explanation of every flag is explain on their <a href="https://github.com/nextdns/nextdns/" target="_blank" aria-label=" (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">Github</a> page and they are very responsive via issues or through their chat on <a href="http://my.nextdns.io" target="_blank" aria-label="my.nextdns.io (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">my.nextdns.io</a>.  </p>
<p>All right -- next thing I've noticed is that my Google Home devices are not sending any DNS requests -- which means the devices use hard coded DNS servers. </p>
<p>I have a separate vlan (<code>eth1.90</code>) for Google Home (includes my Android TV, <a aria-label=" (opens in a new tab)" href="https://osmc.tv/" target="_blank" rel="noreferrer noopener" class="aioseop-link">OSMC</a>, Nest Home Hub and all other GHome and Chromecast devices). For this vlan I set up a deflector to be able to cast and ping/ssh from my "main" network/vlan to GHome vlan. </p>
<p>Using <a href="https://iperf.io/2019/12/27/intercept-and-redirect-dns-requests/" target="_blank" aria-label=" (opens in a new tab)" rel="noreferrer noopener" class="aioseop-link">this guide</a> I redirected all external DNS traffic to the ERL so I can monitor what's happening. The important part was the following:</p>
<pre class="wp-block-preformatted">yeri@sg-erl# show service nat rule 4053<br />destination {<br />port 53<br />}<br />inbound-interface eth1.90<br />inside-address {<br />address 10.3.34.1<br />port 53<br />}<br />protocol tcp_udp<br />type destination</pre>
<p>This allows to "catch" all UDP and TCP connections to :53 and redirect them the ERL DNS server (10.3.34.1). The GHome devices were acting a bit weird after committing the change, but a reboot of the device fixed it. </p>
<p>Note that you need to set this up per vlan. If you want to catch DNS requests for your Guest or IoT vlan, you'll need to do the same. </p>
]]></content:encoded>
      <category>google</category><category>linux</category><category>networking</category>
      <category>debian</category><category>dns</category><category>nextdns</category><category>router</category><category>ubiquiti</category>
    </item>
    
  </channel>
</rss>
