DnsServer
DnsServer
Section titled “DnsServer”Defines a DNS server for automatic record management.
This object can be configured from the WebUI under Settings › Network › DNS › DNS Providers
Fields
Section titled “Fields”DnsServer is a multi-variant object: each instance has an @type discriminator selecting one of the variants below, and each variant carries its own set of fields.
@type: "Tsig"
Section titled “@type: "Tsig"”RFC2136 (TSIG)
Type:
IpAddr· requiredThe IP address of the DNS server
Type:
UnsignedInt· default:53· max: 65535 · min: 1The port used to communicate with the DNS server
keyName
Section titled “keyName”Type:
String· requiredThe key used to authenticate with the DNS server
Type:
SecretKey· requiredThe secret or token used to authenticate with the DNS server
protocol
Section titled “protocol”Type:
IpProtocol· default:"udp"The protocol used to communicate with the DNS server
tsigAlgorithm
Section titled “tsigAlgorithm”Type:
TsigAlgorithm· default:"hmac-sha512"The TSIG algorithm used to authenticate with the DNS server
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "Sig0"
Section titled “@type: "Sig0"”RFC2136 (SIG0)
Type:
IpAddr· requiredThe IP address of the DNS server
Type:
UnsignedInt· default:53· max: 65535 · min: 1The port used to communicate with the DNS server
publicKey
Section titled “publicKey”Type:
String· requiredThe public key used to authenticate with the DNS server
Type:
SecretText· requiredThe secret or token used to authenticate with the DNS server
signerName
Section titled “signerName”Type:
String· requiredThe signer name used in the SIG0 records
protocol
Section titled “protocol”Type:
IpProtocol· default:"udp"The protocol used to communicate with the DNS server
sig0Algorithm
Section titled “sig0Algorithm”Type:
Sig0Algorithm· default:"ed25519"The SIG0 algorithm used to authenticate with the DNS server
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "Cloudflare"
Section titled “@type: "Cloudflare"”Cloudflare
Type:
String?Optional account email to authenticate with Cloudflare
secret
Section titled “secret”Type:
SecretKey· requiredThe secret or token used to authenticate with the DNS server
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "DigitalOcean"
Section titled “@type: "DigitalOcean"”DigitalOcean
secret
Section titled “secret”Type:
SecretKey· requiredThe secret or token used to authenticate with the DNS server
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "DeSEC"
Section titled “@type: "DeSEC"”DeSEC
secret
Section titled “secret”Type:
SecretKey· requiredThe secret or token used to authenticate with the DNS server
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "Ovh"
Section titled “@type: "Ovh"”OVH
applicationKey
Section titled “applicationKey”Type:
String· requiredThe application key used to authenticate with the OVH DNS server
applicationSecret
Section titled “applicationSecret”Type:
SecretKey· requiredThe application secret used to authenticate with the OVH DNS server
consumerKey
Section titled “consumerKey”Type:
SecretKey· requiredThe consumer key used to authenticate with the OVH DNS server
ovhEndpoint
Section titled “ovhEndpoint”Type:
OvhEndpoint· default:"ovh-eu"Which OVH endpoint to use
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "Bunny"
Section titled “@type: "Bunny"”BunnyDNS
secret
Section titled “secret”Type:
SecretKey· requiredThe secret or token used to authenticate with the DNS server
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "Porkbun"
Section titled “@type: "Porkbun"”Porkbun
apiKey
Section titled “apiKey”Type:
String· requiredThe API key used to authenticate with Porkbun
secretApiKey
Section titled “secretApiKey”Type:
SecretKey· requiredThe secret API key used to authenticate with Porkbun
secret
Section titled “secret”Type:
SecretKey· requiredThe secret or token used to authenticate with the DNS server
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "Dnsimple"
Section titled “@type: "Dnsimple"”DNSimple
authToken
Section titled “authToken”Type:
SecretKey· requiredThe authentication token used to authenticate with DNSimple
accountIdentifier
Section titled “accountIdentifier”Type:
String· requiredThe account ID used to authenticate with DNSimple
secret
Section titled “secret”Type:
SecretKey· requiredThe secret or token used to authenticate with the DNS server
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "Spaceship"
Section titled “@type: "Spaceship"”Spaceship
apiKey
Section titled “apiKey”Type:
String· requiredThe API key used to authenticate with Spaceship
secret
Section titled “secret”Type:
SecretKey· requiredThe secret or token used to authenticate with the DNS server
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "Route53"
Section titled “@type: "Route53"”AWS Route53
accessKeyId
Section titled “accessKeyId”Type:
String· requiredThe AWS access key ID
secretAccessKey
Section titled “secretAccessKey”Type:
SecretKey· requiredThe AWS secret access key
sessionToken
Section titled “sessionToken”Type:
SecretKeyOptional· requiredOptional session token for temporary AWS credentials
region
Section titled “region”Type:
String· default:"us-east-1"The AWS region
hostedZoneId
Section titled “hostedZoneId”Type:
String?Hosted zone ID to use (resolved automatically by name if not set)
privateZoneOnly
Section titled “privateZoneOnly”Type:
Boolean· default:falseWhether to restrict zone resolution to private zones only
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
@type: "GoogleCloudDns"
Section titled “@type: "GoogleCloudDns"”Google Cloud DNS
serviceAccountJson
Section titled “serviceAccountJson”Type:
SecretText· requiredService account JSON credentials used to authenticate with Google Cloud
projectId
Section titled “projectId”Type:
String· requiredThe Google Cloud project ID that owns the managed zone
managedZone
Section titled “managedZone”Type:
String?Managed zone name (resolved automatically by longest suffix match if not set)
privateZone
Section titled “privateZone”Type:
Boolean· default:falseWhether to restrict zone resolution to private zones only
impersonateServiceAccount
Section titled “impersonateServiceAccount”Type:
String?Optional service account email to impersonate
description
Section titled “description”Type:
String· requiredShort description of this DNS server
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?Identifier for the tenant this DNS server belongs to
timeout
Section titled “timeout”Type:
Duration· default:"30s"Request timeout for the DNS server
Type:
Duration· default:"5m"The TTL for new DNS record
pollingInterval
Section titled “pollingInterval”Type:
Duration· default:"15s"How often to check for DNS records to propagate
propagationTimeout
Section titled “propagationTimeout”Type:
Duration· default:"1m"How long to wait for DNS records to propagate
propagationDelay
Section titled “propagationDelay”Type:
Duration?Initial delay before first propagation check (useful for slow providers)
JMAP API
Section titled “JMAP API”The DnsServer object is available via the urn:stalwart:jmap capability.
x:DnsServer/get
Section titled “x:DnsServer/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
This method requires the sysDnsServerGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:DnsServer/get", { "ids": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:DnsServer/set
Section titled “x:DnsServer/set”This is a standard Foo/set method as defined in RFC 8620, Section 5.3.
Supports create, update, and destroy operations in a single call.
Create
Section titled “Create”This operation requires the sysDnsServerCreate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:DnsServer/set", { "create": { "new1": { "@type": "Tsig", "description": "Example", "host": "192.0.2.1", "key": { "@type": "Value", "secret": "Example" }, "keyName": "Example" } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'Update
Section titled “Update”This operation requires the sysDnsServerUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:DnsServer/set", { "update": { "id1": { "keyName": "updated value" } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'Destroy
Section titled “Destroy”This operation requires the sysDnsServerDestroy permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:DnsServer/set", { "destroy": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:DnsServer/query
Section titled “x:DnsServer/query”This is a standard Foo/query method as defined in RFC 8620, Section 5.5.
This method requires the sysDnsServerQuery permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:DnsServer/query", { "filter": { "memberTenantId": "id1" } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'The x:DnsServer/query filter argument accepts the following conditions (combinable with AnyOf / AllOf / Not per RFC 8620):
| Condition | Kind |
|---|---|
memberTenantId | id of Tenant |
stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get DnsServer id1Create
Section titled “Create”stalwart-cli create DnsServer/Tsig \ --field host=192.0.2.1 \ --field keyName=Example \ --field 'key={"@type":"Value","secret":"Example"}' \ --field description=Examplestalwart-cli query DnsServerstalwart-cli query DnsServer --where memberTenantId=id1Update
Section titled “Update”stalwart-cli update DnsServer id1 --field keyName='updated value'Delete
Section titled “Delete”stalwart-cli delete DnsServer --ids id1Nested types
Section titled “Nested types”SecretKey
Section titled “SecretKey”A secret value provided directly, from an environment variable, or from a file.
Value: Secret value. Carries the fields ofSecretKeyValue.EnvironmentVariable: Secret read from environment variable. Carries the fields ofSecretKeyEnvironmentVariable.File: Secret read from file. Carries the fields ofSecretKeyFile.
SecretKeyValue
Section titled “SecretKeyValue”A secret value provided directly.
secret
Section titled “secret”Type:
String· required · secretPassword or secret value
SecretKeyEnvironmentVariable
Section titled “SecretKeyEnvironmentVariable”A secret value read from an environment variable.
variableName
Section titled “variableName”Type:
String· requiredEnvironment variable name to read the secret from
SecretKeyFile
Section titled “SecretKeyFile”A secret value read from a file.
filePath
Section titled “filePath”Type:
String· requiredFile path to read the secret from
SecretText
Section titled “SecretText”A secret text value provided directly, from an environment variable, or from a file.
Text: Secret value. Carries the fields ofSecretTextValue.EnvironmentVariable: Secret read from environment variable. Carries the fields ofSecretKeyEnvironmentVariable.File: Secret read from file. Carries the fields ofSecretKeyFile.
SecretTextValue
Section titled “SecretTextValue”A secret text value provided directly.
secret
Section titled “secret”Type:
Text· required · secretPassword or secret value
SecretKeyOptional
Section titled “SecretKeyOptional”An optional secret value, or none.
None: No secret. No additional fields.Value: Secret value. Carries the fields ofSecretKeyValue.EnvironmentVariable: Secret read from environment variable. Carries the fields ofSecretKeyEnvironmentVariable.File: Secret read from file. Carries the fields ofSecretKeyFile.
IpProtocol
Section titled “IpProtocol”| Value | Label |
|---|---|
udp | UDP |
tcp | TCP |
TsigAlgorithm
Section titled “TsigAlgorithm”| Value | Label |
|---|---|
hmac-md5 | HMAC-MD5 |
gss | GSS |
hmac-sha1 | HMAC-SHA1 |
hmac-sha224 | HMAC-SHA224 |
hmac-sha256 | HMAC-SHA256 |
hmac-sha256-128 | HMAC-SHA256-128 |
hmac-sha384 | HMAC-SHA384 |
hmac-sha384-192 | HMAC-SHA384-192 |
hmac-sha512 | HMAC-SHA512 |
hmac-sha512-256 | HMAC-SHA512-256 |
Sig0Algorithm
Section titled “Sig0Algorithm”| Value | Label |
|---|---|
ecdsa-p256-sha256 | ECDSA-P256-SHA256 |
ecdsa-p384-sha384 | ECDSA-P384-SHA384 |
ed25519 | ED25519 |
OvhEndpoint
Section titled “OvhEndpoint”| Value | Label |
|---|---|
ovh-eu | OVH EU |
ovh-ca | OVH CA |
kimsufi-eu | Kimsufi EU |
kimsufi-ca | Kimsufi CA |
soyoustart-eu | Soyoustart EU |
soyoustart-ca | Soyoustart CA |