By default Tailscale devices prefer the local DNS server for any hostname that’s not part of your Tailscale network, unless you’ve configured a global DNS server. There’s also the option to configure split DNS and have a different DNS server for certain domains (for example your own domain). You can also add search domains to allow short hostnames to be resolved to FQDNs of your choice.