Tailscale icon

Tailscale

Manage your Tailscale tailnet — devices, routes, and more

DNS → Get Preferences

AI-generated

Summary

Retrieve the DNS preferences of a specified Tailscale tailnet, including whether MagicDNS is enabled.

Inputs

  • Authentication — Choose the authentication method, either API Key or OAuth2. Defaults to API Key.
  • Tailnet Name or ID (required) — Select the tailnet organization name or ID from the list or use '-' for the default tailnet of the authenticated user.
  • Request Options — Optional HTTP request settings such as batching, proxy, timeout, and ignoring SSL issues.

Output shape

a single JSON object representing the DNS preferences of the specified tailnet

The returned data contains DNS preference settings, such as the status of MagicDNS. This operation performs an HTTP GET request to the endpoint /api/v2/tailnet/{tailnet}/dns/preferences.

Links

Discussion