To turn on debug loggin, use “systemctl edit systemd-resolved”, then write the two lines:
[Service] Environment=SYSTEMD_LOG_LEVEL=debug