diff --git a/network/setup-ip b/network/setup-ip index 556d0a8b6..2a50d2025 100755 --- a/network/setup-ip +++ b/network/setup-ip @@ -60,6 +60,11 @@ configure_network() { echo "nameserver $secondary_dns" >> /etc/resolv.conf fi fi + if [ -x /usr/bin/resolvectl ] && \ + systemctl is-enabled -q systemd-resolved.service && \ + ! qsvc disable-dns-server ; then + resolvectl dns "$INTERFACE" "$primary_dns" "$secondary_dns" + fi } configure_network_nm() {