# 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
