# ip dns mode

## 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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

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

The question should be specific, self-contained, and written in natural language.
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.
