Yes that works, and many thanks for the explanation.
/etc/resolv.conf is now linked to /run/resolvconf/resolv.conf
and contains only the local proxy dns:
$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 192.168.2.1
and all works as expected
But in the long term I guess I should move to systemd-networkd as the preferred way to set static ip?
Yes that works, and many thanks for the explanation.
/etc/resolv.conf is now linked to /run/resolvconf /resolv. conf
and contains only the local proxy dns:
$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 192.168.2.1
and all works as expected
But in the long term I guess I should move to systemd-networkd as the preferred way to set static ip?