How do I disable the DNS service in Core 18?

On the latest UC22, this problem is still around. There’s a built-in DNS server, that we can disable easily by setting DNSStubListener=no, but that breaks the machine as the local DNS settings still point to localhost.

I am unable to change /etc/resolv.conf symlink to point to the network interface /run/systemd/resolve/resolv.conf doesn’t work as the file system is readonly.

Any documented solution to this?

Thanks!