Nothing resolves after running "apt install systemd-resolved"

I am trying to install Home Assistant Supervised using https://github.com/home-assistant/supervised-installer. I have installed debian-12.1.0.

Going through step 1 of the above link, everything goes well will

apt install \
apparmor \
jq \
wget \
curl \
udisks2 \
libglib2.0-bin \
network-manager \
dbus \
lsb-release \
systemd-journal-remote \
systemd-resolved -y

Except that after “systemd-resolved” is installed DNS no longer works so when I run

curl -fsSL get.docker.com | sh

I get

curl: (6) Could not resolve host: get.docker.com

Sorted: https://github.com/home-assistant/supervised-installer/issues/304