Private DNS with MagicDNS
Blog post from Tailscale
MagicDNS, a feature of Tailscale, offers secure private DNS by allowing nodes on a tailnet to be accessed by name rather than IP addresses, enhancing DNS security by preventing name lookup information from leaving the device and upgrading non-Tailscale DNS queries. Traditionally, DNS has been insecure due to unencrypted and unauthenticated early protocols, but MagicDNS improves this by using a built-in DNS server on each node that handles queries locally. This setup prevents unencrypted queries from leaving the device and eliminates the need for caching, enabling immediate propagation of network changes. The system supports multiple DNS protocols, including DNS over TLS (DoT) and DNS over HTTP (DoH), ensuring encrypted communication with upstream DNS servers. MagicDNS is still in beta, and future enhancements include additional features like custom record additions and broader support for arbitrary DoT and DoH resolvers. To enable MagicDNS, users can configure it through the Tailscale admin console, allowing for tailored DNS settings and enhanced privacy across the network.