> For the complete documentation index, see [llms.txt](https://docs.islandrouter.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.islandrouter.com/island-router-cli-2.3.2/commands/ip-global-context/ip-dns-mode.md).

# ip dns mode

Sets the method Island uses to resolve DNS requests.

## Syntax

```
ip dns mode dnssec
ip dns mode https cloudflare|google|<url>
ip dns mode recursive
```

## Syntax Description

<table><thead><tr><th width="203">Keyword</th><th>Description</th></tr></thead><tbody><tr><td><code>dnssec</code></td><td>Use recursive DNS with DNSSEC verification.</td></tr><tr><td><code>https</code></td><td>Use DNS over HTTPS (DoH).</td></tr><tr><td><code>cloudflare</code></td><td>Use Cloudflare for DoH resolution.</td></tr><tr><td><code>google</code></td><td>Use Google for DoH resolution.</td></tr><tr><td>url</td><td>Specify the URL of an arbitrary DoH server to use for DoH resolution.</td></tr><tr><td><code>resursive</code></td><td>Use recursive DNS.</td></tr></tbody></table>

## Defaults

Island uses Cloudflare's DNS over HTTPS service by default.

## Usage Guidelines

This command specifies how DNS lookups are performed by Island.

By default, Island uses DNS over HTTPS (DoH) services provided by Cloudflare to resolve DNS requests. The `https` option can be used to change the DoH provider to Google or to an arbitrary DoH server.

Island can also be configured to use standard recusive DNS resolution. Both the `recursive` and the `dnssec` options enable recursive DNS mode, the difference is that `dnssec` also enables DNSSEC validation.

If Island is unable to access the specified DoH provider, it will revert to recursive DNS.

## Examples

```
ip dns mode recursive
ip dns mode https https://doh.example.com/dns-query
```

## Related Commands


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.islandrouter.com/island-router-cli-2.3.2/commands/ip-global-context/ip-dns-mode.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
