After a few experiments with resolvectl dns and resolvectl domain, I want my network back to what it was without a reboot. There is a command for that.
Say you tried a different resolver on one interface, with example values:
resolvectl dns eth0 192.168.1.53
resolvectl domain eth0 '~example.com'
The manual says a domain with a ~ prefix is a route-only domain for that interface, so queries for example.com are sent to this link. To drop both changes again:
resolvectl revert eth0
The manual says that after a revert all per-interface DNS settings are reset to their defaults, undoing all effects of dns, domain, default-route, llmnr, mdns, dnssec, dnsovertls and nta. The manual lists the command as added in systemd version 239.
Check the result with the status command for that link:
resolvectl status eth0
The manual also notes that when a network interface disappears, its configuration is lost automatically, so an explicit revert is not necessary in that case. It is for links that stay up.
The caveat: changes made with resolvectl dns are runtime settings to begin with. They do not survive a reboot, and the network manager may overwrite them when it reconfigures the link. Permanent settings belong in the network configuration of that tool, and a revert only undoes what you set by hand.
Further reading: resolvectl manual