Files
wg2outline/root/custom-cont-init.d/10-outline-dns
T
2026-06-10 17:15:11 +00:00

7 lines
275 B
Plaintext

#!/usr/bin/with-contenv bash
# Some distros mount /etc/resolv.conf as a file from the host.
# Ensure DNS works reliably inside the VPN network namespace.
umount /etc/resolv.conf 2>/dev/null || true
[ -f /etc/resolv.conf ] || printf 'nameserver 1.1.1.1\n' > /etc/resolv.conf