Add explicit DNS settings

This commit is contained in:
Peter Vacho 2026-03-06 14:22:16 +01:00
parent 7ef167338e
commit be5d7e36fb
No known key found for this signature in database
GPG key ID: 00ACA0D6AF712EC9
2 changed files with 58 additions and 0 deletions

View file

@ -0,0 +1,10 @@
# Ignore DNS servers advertised by networks (e.g. via DHCP).
#
# This makes NetworkManager refuse automatically provided DNS and lets
# systemd-resolved fall back to the configured global resolvers instead.
#
# Individual connections can override this:
# nmcli connection modify <connection> ipv4.ignore-auto-dns no ipv6.ignore-auto-dns no
[connection]
ipv4.ignore-auto-dns=true
ipv6.ignore-auto-dns=true