Set DNS preferences
tailscale_set_dns_preferencesEnable or disable MagicDNS for a Tailscale tailnet by setting DNS preferences; add nameservers first if enabling fails because none are configured.
Instructions
Set DNS preferences for your tailnet, such as enabling or disabling MagicDNS. The API reference says enabling can fail when the tailnet has no nameservers; if it does, add one with tailscale_set_nameservers first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"magicDNS": "<magicDNS>"
},
"name": "tailscale_set_dns_preferences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| magicDNS | Yes | Whether to enable MagicDNS |