4 ms·
"2. OpenVPN never borks my resolv.conf but Wireguard often leaves my DNS resolution in a state of confusion." Checking the source... excerpt from src/tools/wg-
by 3xblah 7y ago
"2. OpenVPN never borks my resolv.conf but Wireguard often leaves my DNS resolution in a state of confusion."
Checking the source... excerpt from src/tools/wg-quick/openbsd.bash:
set_dns() {
[[ ${#DNS[@]} -gt 0 ]] || return 0
# TODO: this is a horrible way of doing it. Has OpenBSD no resolvconf?
cmd cp /etc/resolv.conf "/etc/resolv.conf.wg-quick-backup.$INTERFACE"
cmd printf 'nameserver %s\n' "${DNS[@]}" > /etc/resolv.conf
}