When a machine name does not resolve, guessing is slow.
From Tailscale 1.74.0 on there is a command that prints the DNS setup of the machine you are on: the local DNS forwarder and the tailnet-wide MagicDNS configuration.
tailscale dns status
Use it before you start poking at resolv.conf. It tells you whether this machine is accepting the DNS settings from the tailnet at all. If not, the cause may be a preference set earlier. You can turn that off per device with tailscale set --accept-dns=false and back on with --accept-dns=true.
--all adds advanced debugging output and --json gives structured output.
Remember how MagicDNS works. A short name like nas works through search domains, while devices shared with you need the full name with the .ts.net tailnet suffix.
Caveat: on macOS, tools like host and nslookup skip the system resolver, so they fail even when ping works. Do not read that as a Tailscale problem.
I would run it first, read it once, and only then touch the settings.
Further reading: Tailscale CLI reference, MagicDNS, On this site: tailscale status –active hides every device that is sitting idle, On this site: tailscale netcheck tells you why your connection is not direct, On this site: Guide: send your tailnet's DNS through your own AdGuard Home with Tailscale split DNS