NetworkManager Issue

Change dns entry for a interface (append it):

resolvectl dns <interface> <dns-entry>

Commands i applied:

vim /etc/NetworkManager/system-connections/'Wired connection 1.nmconnection’

[connection]
id=Wired connection 1
uuid=92965f12-76d5-3f21-b364-32f6f7e3dc11
type=ethernet
autoconnect-priority=-999
interface-name=ens33
permissions=
timestamp=1693301793

[ethernet]
mac-address-blacklist=

[ipv4]
address1=192.168.1.9/24,192.168.1.1
dns=192.168.1.9;
dns-search=
ignore-auto-dns=true
ignore-auto-routes=true
method=manual
route1=0.0.0.0/0,192.168.1.1

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
ignore-auto-dns=true
method=auto

[proxy]

Check Resolved:

systemd-resolve --status

Configure now resolved :

sudo vim /etc/systemd/resolved.conf

Most Important:

from this:

root@k8snode:/etc/bind# ls -l /etc/resolv.conf lrwxrwxrwx 1 root root 39 Apr 16 12:35 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf

To this:

sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

Last updated