Skip to the documentation
CLI

nextmail dns-connections

Every command in this namespace, with its arguments, flags and examples.

Commands

The DNS provider accounts connected to the workspace, through which Nextmail writes the records of a domain itself: list them, start connecting one, read what disconnecting one would leave behind, and disconnect it. A connection is finished in a browser, because the provider asks the person to sign in.

Every command here also takes the global flags, such as --json, --profile and --dry-run. See the global flags

nextmail dns-connections list

List the DNS provider accounts connected to the workspace

Scopesdomains:readNeeds a sign-inAliasesls

Usage

nextmail dns-connections list [flags]

Returns every DNS provider account connected to the workspace, through which Nextmail writes the records of a domain itself, as the Providers tab of the domains page in the app shows them. Each one names the domains it serves, how many records Nextmail wrote through it and still keeps, and whether it is active, needs connecting again (needs-reauth) or was disconnected (revoked).

configured is false when this server cannot connect a provider at all. start begins a connection, which the person finishes in a browser because the provider asks them to sign in.

Examples

nextmail dns-connections list
Print the raw JSON
nextmail dns-connections list --json

Also available in

API
GET /dns-connections
TypeScript
dnsConnections.list()
Python
dns_connections.list()
Ruby
dns_connections.list
PHP
dnsConnections->list
Go
DNSConnections.List
Java
dnsConnections().list
C#
DnsConnections.ListAsync

nextmail dns-connections start

Start connecting a DNS provider account

Scopesdomains:writeNeeds a sign-in

Usage

nextmail dns-connections start [flags]

Starts connecting a Cloudflare account to the workspace and resolves with the url to open. The person the key or app acts for, the workspace owner for an API key, opens it in a browser signed in to Nextmail with this workspace open. Cloudflare asks them to sign in and choose what Nextmail may reach, and the connection is made when Cloudflare sends them back, which takes that signed-in browser session and never this credential.

The link works once, within 10 minutes. Connecting an account that is already connected refreshes it, and list shows the connection once it is made.

Examples

nextmail dns-connections start
Print the raw JSON
nextmail dns-connections start --json

Also available in

API
POST /dns-connections
TypeScript
dnsConnections.start()
Python
dns_connections.start()
Ruby
dns_connections.start
PHP
dnsConnections->start
Go
DNSConnections.Start
Java
dnsConnections().start
C#
DnsConnections.StartAsync

nextmail dns-connections get

Read a DNS connection and what disconnecting it would leave behind

Scopesdomains:readNeeds a sign-inAliasesshowview

Usage

nextmail dns-connections get <id> [flags]

Returns one connection with what disconnecting it would do: the domains it serves, the records Nextmail wrote through it, busy for the domains a sync is running on right now, which hold a disconnect back until it ends, and keepsMail for the verified domains that stop receiving mail once their records come down.

Arguments

<id>Required

A connection id from list.

Examples

nextmail dns-connections get dnsl_3f9a1c2e7b4d4e6f8a0b2c3d
Print the raw JSON
nextmail dns-connections get dnsl_3f9a1c2e7b4d4e6f8a0b2c3d --json

Also available in

API
GET /dns-connections/{id}
TypeScript
dnsConnections.get()
Python
dns_connections.get()
Ruby
dns_connections.get
PHP
dnsConnections->get
Go
DNSConnections.Get
Java
dnsConnections().get
C#
DnsConnections.GetAsync

nextmail dns-connections delete

Disconnect a DNS provider account

Scopesdomains:writeNeeds a sign-in
Asks you to confirm
Aliasesrmdelremove

Usage

nextmail dns-connections delete <id> [flags]

Disconnects the account as Disconnect does in the app: the records Nextmail wrote through it come down, every domain it serves is detached, and the connection is revoked at the provider. A verified domain whose records come down stops receiving mail, so read get first. detached counts what came down and lists the records still published, to delete by hand.

A connection that is already disconnected is removed from the list instead, once no domain and no record is left on it, and removed says so.

Arguments

<id>Required

A connection id from list.

Examples

nextmail dns-connections delete dnsl_3f9a1c2e7b4d4e6f8a0b2c3d
Skip the confirmation, for scripts
nextmail dns-connections delete dnsl_3f9a1c2e7b4d4e6f8a0b2c3d --yes

Also available in

API
DELETE /dns-connections/{id}
TypeScript
dnsConnections.delete()
Python
dns_connections.delete()
Ruby
dns_connections.delete
PHP
dnsConnections->delete
Go
DNSConnections.Delete
Java
dnsConnections().delete
C#
DnsConnections.DeleteAsync