How is local network hostname and FQDN resolution handled?

Tailscale user:
How is local network hostname and FQDN resolution handled?

Tailscale support:
The Magic DNS document describes hostname generation. In short, names will be of the form hostname.yourdomain.com.beta.tailscale.net and yourdomain.com.beta.tailscale.net is added to the resolver search path.