# DNS connection

Let Mailset write the records in your own DNS account.

## mailset dns status

Whether the org’s own Cloudflare is connected, the accounts and zones it sees, and whose token writes each domain.

```bash
mailset dns status [--org <id>]
```

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/dns#dns.status-returns).

Example:

```bash
mailset dns status
```

In the API: [POST /v1/dns.status](https://mailset.app/docs/api/dns#dns.status)

## mailset dns connect

Let Mailset write your domains’ DNS records in your own Cloudflare: cloudflare (gives a Mailset page to open, signed in).

```bash
mailset dns connect <provider> [--org <id>]
```

### Flags

- `<provider>` (argument, required): The DNS provider to connect: `cloudflare`.

An admin or owner of the org can run it.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/dns#dns.connect-returns).

Example:

```bash
mailset dns connect cloudflare
```

In the API: [POST /v1/dns.connect](https://mailset.app/docs/api/dns#dns.connect)

## mailset dns disconnect

End Mailset’s access to your Cloudflare at Cloudflare, and go back to adding records by hand.

```bash
mailset dns disconnect [--org <id>]
```

An admin or owner of the org can run it.

It can ask for your passkey. It prints “This needs your passkey. Open <link>”, then waits until the link is approved or refused. Read its output as it comes: through head or tail, the link shows only after the wait.

With `--json` it prints what [the API returns](https://mailset.app/docs/api/dns#dns.disconnect-returns).

Example:

```bash
mailset dns disconnect
```

In the API: [POST /v1/dns.disconnect](https://mailset.app/docs/api/dns#dns.disconnect)

---

© 2026 Intenseloop, Inc. Mailset’s site, docs and guides are copyrighted. You may read them and use their code to build with Mailset. Don’t republish them or use them to build a copy of Mailset. Terms: https://mailset.app/terms#content