mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
force tcp connections for dns resolution
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user