force tcp connections for dns resolution

This commit is contained in:
holger krekel
2026-03-09 16:44:33 +01:00
parent c4b018b7f2
commit 550498e936

View File

@@ -491,7 +491,7 @@ class RelayContainer(Container):
self.bash(f"""
systemctl disable --now systemd-resolved 2>/dev/null || true
rm -f /etc/resolv.conf
echo 'nameserver {dns_ip}' > /etc/resolv.conf
printf 'nameserver {dns_ip}\noptions use-vc\n' >/etc/resolv.conf
mkdir -p /etc/unbound/unbound.conf.d
printf 'server:\\n domain-insecure: "localchat"\\n\\n
forward-zone:\\n name: "localchat"\\n