<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=8306&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Alternative dns-stub resolver with no-systemd (has 127.0.0.53)]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=8306</link>
		<description><![CDATA[The most recent posts in Alternative dns-stub resolver with no-systemd (has 127.0.0.53).]]></description>
		<lastBuildDate>Thu, 26 Nov 2026 10:29:08 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Alternative dns-stub resolver with no-systemd (has 127.0.0.53)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=66660#p66660</link>
			<description><![CDATA[<p>Hi !</p><p>This is not a systemd thing or whatever dns-programs are possible, it is the thing, that<br />EACH host should have a dns-cache (like windows hat &gt; 20(??) years) and EACH<br />container is a host. The other side of this coin is, that this cache shoudl resolve<br />local names!<br />If a one container is running a webbrowser and another one a webserver (for that<br />seprate network only), many queries would be issued, caching is a big speeup.<br />I do not want to setup unbound into every container to have a cache inside the<br />container, thats the most important point. It has bee not the question to have<br />a lan-local dns to cache internet queries, but local queries in an isolated network<br />(which is also a big privacy-plus).<br />But in Linux, I see, this is not possible (and there are other problems with isolated<br />networks) and I do not want to use systemd.<br />If, at all, I would install some dns, then in another container inside that network.<br />But this is not speedy - even dnsmasq (on the host) has a bad responsetime for<br />cached(!) queries and it does&#039;nt follow dns-logging standards (it logs based on<br />seconds ....). You&#039;ll have to use tcpdump and measure request/response for clients.</p><p>Regards,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Thu, 26 Nov 2026 10:29:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=66660#p66660</guid>
		</item>
		<item>
			<title><![CDATA[Re: Alternative dns-stub resolver with no-systemd (has 127.0.0.53)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=66640#p66640</link>
			<description><![CDATA[<p>hi @kaiyel</p><p>unbound is configurable as both a stub and recursive caching resolver, long before systemd added resolved functionality.<br />Haven&#039;t used the bind server and utilities for a long time.. unbound is a lighter footprint for my use case.</p><p>Best Regards.</p>]]></description>
			<author><![CDATA[dummy@example.com (viptux)]]></author>
			<pubDate>Mon, 23 Nov 2026 19:27:05 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=66640#p66640</guid>
		</item>
		<item>
			<title><![CDATA[Re: Alternative dns-stub resolver with no-systemd (has 127.0.0.53)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=66635#p66635</link>
			<description><![CDATA[<p>Hello @webman,</p><p>Though I understand systemd&#039;s &quot;dns-stub-resolver&quot; listens on 127.0.0.53 port 53 and does the work of a caching local dns resolver, I do not know what makes this &quot;bind&quot; replacement smarter or necessary.</p><p>I&#039;ve not had experiences to suggest I shouldn&#039;t continue to prefer &quot;bind&quot; configured as a caching DNS resolver listening on 127.0.0.1 port 53, as I&#039;ve done for decades on production equipment.&#160; It &quot;just works&quot; and I have many LXC containers in use now with a local caching DNS resolver on each of them.</p><p>I&#039;m afraid I can&#039;t help you mimic the systemd way of doing things.&#160; But I can show you what has worked for me and hope it helps.</p><p>Using IPv4 networking after an &quot;apt-get install -y bind9 bind9-utils&quot;, my config looks like this inside the LXC container : </p><div class="codebox"><pre class="vscroll"><code># cat /etc/default/named
RESOLVCONF=no
OPTIONS=&quot;-u bind -4&quot;

# cat /etc/bind/named.conf.options
acl &quot;trusted_clients&quot; {
  127.0.0.0/24;
};
options {
  directory &quot;/var/cache/bind&quot;;
  listen-on port 53 { 127.0.0.1; };
  listen-on-v6 { none; };
  recursion yes;
  allow-query       { trusted_clients; };
  allow-recursion   { trusted_clients; };
  allow-query-cache { trusted_clients; };
  dnssec-validation auto;
  version none;
  minimal-responses yes;
  allow-transfer { none; };
  max-cache-size 1024m;
};
logging {
  category lame-servers { null; };
};

# cat /etc/resolv.conf
nameserver 127.0.0.1

# cat /etc/nsswitch.conf
passwd:         files
group:          files
shadow:         files
gshadow:        files
hosts:          files dns
networks:       files
protocols:      db files
services:       db files
ethers:         db files
rpc:            db files
netgroup:       nis</code></pre></div><p>Then to test :</p><div class="codebox"><pre><code># /etc/init.d/named restart
Stopping domain name service...: namedwaiting for pid 1017978 to die
.
Starting domain name service...: named.
# dig +short @127.0.0.1 www.google.com
142.251.154.119
142.251.153.119
142.251.150.119
142.251.157.119
142.251.152.119
142.251.151.119
142.251.156.119
142.251.155.119</code></pre></div><p>@viptux, I have only a passing exposure to &quot;unbound&quot; and have wondered if it provides local dns caching with simpler configuration and using less resources while being equally secure.&#160; What are your thoughts as there are many ways to accomplish the same task?</p><p>Cheers,<br />--K</p>]]></description>
			<author><![CDATA[dummy@example.com (kaiyel)]]></author>
			<pubDate>Mon, 23 Nov 2026 17:11:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=66635#p66635</guid>
		</item>
		<item>
			<title><![CDATA[Re: Alternative dns-stub resolver with no-systemd (has 127.0.0.53)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=66623#p66623</link>
			<description><![CDATA[<p>Depends on the objective and use case for the containers.<br />Running an unbound daemon on the container host or even from within the container itself should provide an equivalence to systemd-resolve.</p><p>Regards</p>]]></description>
			<author><![CDATA[dummy@example.com (viptux)]]></author>
			<pubDate>Mon, 23 Nov 2026 02:30:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=66623#p66623</guid>
		</item>
		<item>
			<title><![CDATA[Re: Alternative dns-stub resolver with no-systemd (has 127.0.0.53)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=66620#p66620</link>
			<description><![CDATA[<p>Hi!</p><p>Thanks for your reply!</p><p>I mentioned explicitely, that there is <strong>NO local network&#039;s DNS resolver</strong>,<br />(for the containers) but the <strong>Hosts file</strong><br />and containers(!) nsswitch.conf says explicitely: <strong>files</strong>, <strong>NO dns</strong>.<br />And networking and ping work as usual with names, because they follow the<br />rules of nsswitch.conf and lookup the hosts file.<br /><strong>There seems to be NO dns-stub-resolver</strong><br />which allows the usual address lookup.<br />nslookup and dig <strong>DO NOT WORK</strong>, because they<br /><strong>IGNORE nsswitch</strong>.<br />systemd handles this smartly using the dns-stub-resolver,<br />provided by systemd itself.</p><p>Regards,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Mon, 23 Nov 2026 00:06:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=66620#p66620</guid>
		</item>
		<item>
			<title><![CDATA[Re: Alternative dns-stub resolver with no-systemd (has 127.0.0.53)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=66615#p66615</link>
			<description><![CDATA[<p>@webman, after spinning up the new lxc container, did you configure the IP address of your local network&#039;s DNS resolver in its /etc/resolv.conf file (e.g. nameserver 10.1.1.1) ?<br />--K</p>]]></description>
			<author><![CDATA[dummy@example.com (kaiyel)]]></author>
			<pubDate>Sun, 22 Nov 2026 21:02:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=66615#p66615</guid>
		</item>
		<item>
			<title><![CDATA[Alternative dns-stub resolver with no-systemd (has 127.0.0.53)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=66611#p66611</link>
			<description><![CDATA[<p>Hello!</p><p>DNS resolution in devuan-based lxc-containers does not work for container to container<br />network, so there is NO dns server and the containers talk only together using hosts file.<br />The hosts file has some entries and effected containers can communicate and ping<br />works fine - even the host command fails.<br />dig and nslookup failing miserably, they ignore the settings in nsswitch.conf (where<br />my containers have only &quot;files&quot;) and this can be easily verified using the inotify tools.<br />On systemd, at least I&#039;ve heart, its running a stub-resolver on 127.0.0.53, which<br />is told to solve the problem.<br />Whats about non-systemd- systems?</p><p>Thanks,<br />Manfred</p>]]></description>
			<author><![CDATA[dummy@example.com (webman)]]></author>
			<pubDate>Sun, 22 Nov 2026 19:17:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=66611#p66611</guid>
		</item>
	</channel>
</rss>
