<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[&quot;Special&quot; treatment of port 53 does not work in all cases]]></title><description><![CDATA[<p dir="auto">I tried installing AdGuard Home to give it a try. However, I noticed that I wasn't getting any responses to DNS queries I was throwing at the Cloudron machine. I connected in through ssh, and checked netstat -anlp, and saw that port 53 was only bound on one of the two interfaces that machine has.</p>
<p dir="auto">I went digging, and found that src/docker.js treats port 53 in a special manner (see getLowerUpIp). This doesn't work for my specific case, where I have two interfaces, and one of those interfaces is for a special internal-only purpose and doesn't really have any external network access.</p>
<p dir="auto">I'm not sure how this could best be resolved. I guess the easy solution might be to bind to all external interfaces, rather than just the first?</p>
]]></description><link>https://forum.cloudron.io/topic/5481/special-treatment-of-port-53-does-not-work-in-all-cases</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 09:34:17 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/5481.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Aug 2021 19:04:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &quot;Special&quot; treatment of port 53 does not work in all cases on Wed, 11 Aug 2021 22:35:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> I patched my docker.js manually, and I can confirm that port 53 is now exposed on all interfaces, as I would expect! Thanks!</p>
]]></description><link>https://forum.cloudron.io/post/35164</link><guid isPermaLink="true">https://forum.cloudron.io/post/35164</guid><dc:creator><![CDATA[Robin]]></dc:creator><pubDate>Wed, 11 Aug 2021 22:35:49 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Special&quot; treatment of port 53 does not work in all cases on Wed, 11 Aug 2021 05:21:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robin" aria-label="Profile: robin">@<bdi>robin</bdi></a> thanks, I have fixed it here -<a href="https://git.cloudron.io/cloudron/box/-/commit/1e665b63234ba7cfdfd6d16679a2261418c7449c" target="_blank" rel="noopener noreferrer nofollow ugc">https://git.cloudron.io/cloudron/box/-/commit/1e665b63234ba7cfdfd6d16679a2261418c7449c</a> . It will be in the next release.</p>
]]></description><link>https://forum.cloudron.io/post/35094</link><guid isPermaLink="true">https://forum.cloudron.io/post/35094</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Wed, 11 Aug 2021 05:21:31 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Special&quot; treatment of port 53 does not work in all cases on Tue, 10 Aug 2021 22:00:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/girish" aria-label="Profile: girish">@<bdi>girish</bdi></a> Yeah, binding to all interfaces would work for me. And I think it's reasonable enough to assume that Cloudron can "own" any interfaces it is given access to, just like a 0.0.0.0 bind would normally, so that seems fine...</p>
<p dir="auto">Some searching finds me this, which looks potentially useful:</p>
<p dir="auto"><a href="https://serverfault.com/questions/1019363/using-ip-address-show-type-to-display-physical-network-interface" target="_blank" rel="noopener noreferrer nofollow ugc">https://serverfault.com/questions/1019363/using-ip-address-show-type-to-display-physical-network-interface</a></p>
<p dir="auto">The one liner given there (with jq) does indeed report only the two physical interfaces I have:</p>
<pre><code># ip -details -json link show | jq -r '
&gt; .[] | 
&gt;       if .linkinfo.info_kind // .link_type == "loopback" then
&gt;           empty
&gt;       else
&gt;           .ifname
&gt;       end
&gt; '
enp1s0
enp2s0
</code></pre>
]]></description><link>https://forum.cloudron.io/post/35089</link><guid isPermaLink="true">https://forum.cloudron.io/post/35089</guid><dc:creator><![CDATA[Robin]]></dc:creator><pubDate>Tue, 10 Aug 2021 22:00:20 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Special&quot; treatment of port 53 does not work in all cases on Mon, 09 Aug 2021 22:40:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robin" aria-label="Profile: robin">@<bdi>robin</bdi></a> Ideally, I would want to bind to 0.0.0.0 but we can't because there is an internal DNS server on port 53. The code then needs a way to bind explicitly to the "external" interfaces of the server.</p>
<p dir="auto">Looks like we can:</p>
<ul>
<li><code>ls -l /sys/class/net/ | grep -v virtual</code> and this lists potential interfaces</li>
<li><code>ip link show</code> - this shows even the virtual interfaces. not sure how i can filter them out . there is <code>ip link show type</code> but cannot find a suitable type option to use</li>
</ul>
]]></description><link>https://forum.cloudron.io/post/35020</link><guid isPermaLink="true">https://forum.cloudron.io/post/35020</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 09 Aug 2021 22:40:49 GMT</pubDate></item><item><title><![CDATA[Reply to &quot;Special&quot; treatment of port 53 does not work in all cases on Mon, 09 Aug 2021 22:27:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/robin" aria-label="Profile: robin">@<bdi>robin</bdi></a> would it work for you if I made it bind to <em>all</em> the IPv4 interfaces (other than loopback)?</p>
<p dir="auto">We have to figure a way to filter out all the internal docker interfaces and bridges.</p>
<p dir="auto">You can quickly check this like below on your server:</p>
<pre><code>$ node
Welcome to Node.js v14.15.4.
Type ".help" for more information.
&gt; os.networkInterfaces()
</code></pre>
]]></description><link>https://forum.cloudron.io/post/35018</link><guid isPermaLink="true">https://forum.cloudron.io/post/35018</guid><dc:creator><![CDATA[girish]]></dc:creator><pubDate>Mon, 09 Aug 2021 22:27:12 GMT</pubDate></item></channel></rss>