Can't access device by hostname anymore, only local ip address

After installing Tailscale, I am no longer able to access a device on my network by its hostname anymore. Even after uninstalling Tailscale, it still doesn’t work. I can only access if I use the local IP address. Did Tailscale change some setting on my computer?

Nevermind. I figured it out. MagicDNS changed the hosts file so that the hostname is linked to the tailscale IP address.