systemd-resolved can work successfully (as a local DNS server on 127.0.0.53:53) and without libnss-resolve.