It's a blend of the two threads here:
Just add that Domain=xy.local to the /etc/systemd/network/*.network file and restart the systemd-resolved & systemd-networkd with the commands
systemctl restart systemd-networkd
systemctl restart systemd-resolved
Good Luck!