Skip to content

dns_record

Manage DNS records

Create

Input parameters

ParameterTypeRequiredDetails
dns_zone
DnsZone
Resource yes
user
User
Resource no
name
Name
String no

Domain name, @ as alias to origin, * for wildcards

Default: null

type
Type
String yes

node, storage or mailer

Default: null

Validation rules
RuleDetails
Include

Allowed values:

  • A
  • AAAA
  • CAA
  • CNAME
  • DS
  • MX
  • NS
  • PTR
  • SRV
  • SSHFP
  • TLSA
  • TXT

Validation error message: %{value} cannot be used

Present

Must be supplied and cannot be null. Must not be empty; strings must contain a non-whitespace character.

Validation error message: must be present and non-empty

content
Content
String yes

Default: null

Validation rules
RuleDetails
Present

Must be supplied and cannot be null. Must not be empty; strings must contain a non-whitespace character.

Validation error message: must be present and non-empty

ttl
TTL
Integer no

Optional TTL in seconds, defaults to zone TTL

Default: null

priority
Priority
Integer no

Optional priority, used for MX and SRV records

Default: null

comment
Comment
Text no

Optional comment

Default: null

Validation rules
RuleDetails
Length
  • Maximum length: 255 characters (inclusive).

Validation error message: length must be at most 255

enabled
Enabled
Boolean no

Enable or disable this DNS record

Default: true

dynamic_update_enabled
Enable dynamic update
Boolean no

Only for A and AAAA records

Default: false

Output parameters

ParameterTypeDescription
id
ID
Integer
dns_zone
DnsZone
Resource
user
User
Resource
name
Name
String Domain name, @ as alias to origin, * for wildcards
type
Type
String node, storage or mailer
content
Content
String
ttl
TTL
Integer Optional TTL in seconds, defaults to zone TTL
priority
Priority
Integer Optional priority, used for MX and SRV records
comment
Comment
Text Optional comment
enabled
Enabled
Boolean Enable or disable this DNS record
dynamic_update_enabled
Enable dynamic update
Boolean Only for A and AAAA records
managed
Managed
Boolean
dynamic_update_url
Dynamic update URL
String
created_at
Created_at
Datetime
updated_at
Updated_at
Datetime

Delete

Input parameters

No parameters.

Output parameters

No parameters.

Dynamic_update

Input parameters

No parameters.

Output parameters

ParameterTypeDescription
content
Content
String

Index

Input parameters

ParameterTypeRequiredDetails
from_id
From ID
Integer no

List objects with IDs greater or lower than this value

Default: null

Validation rules
RuleDetails
Number
  • Must be a number after parameter type conversion.
  • Minimum: 0 (inclusive).

Validation error message: must be at least 0

limit
Limit
Integer no

Number of objects to retrieve

Default: null

Validation rules
RuleDetails
Number
  • Must be a number after parameter type conversion.
  • Minimum: 0 (inclusive).
  • Maximum: 1000 (inclusive).

Validation error message: must be between 0 and 1000

dns_zone
DnsZone
Resource no
user
User
Resource no

Output parameters

ParameterTypeDescription
id
ID
Integer
dns_zone
DnsZone
Resource
user
User
Resource
name
Name
String Domain name, @ as alias to origin, * for wildcards
type
Type
String node, storage or mailer
content
Content
String
ttl
TTL
Integer Optional TTL in seconds, defaults to zone TTL
priority
Priority
Integer Optional priority, used for MX and SRV records
comment
Comment
Text Optional comment
enabled
Enabled
Boolean Enable or disable this DNS record
dynamic_update_enabled
Enable dynamic update
Boolean Only for A and AAAA records
managed
Managed
Boolean
dynamic_update_url
Dynamic update URL
String
created_at
Created_at
Datetime
updated_at
Updated_at
Datetime

Show

Input parameters

No parameters.

Output parameters

ParameterTypeDescription
id
ID
Integer
dns_zone
DnsZone
Resource
user
User
Resource
name
Name
String Domain name, @ as alias to origin, * for wildcards
type
Type
String node, storage or mailer
content
Content
String
ttl
TTL
Integer Optional TTL in seconds, defaults to zone TTL
priority
Priority
Integer Optional priority, used for MX and SRV records
comment
Comment
Text Optional comment
enabled
Enabled
Boolean Enable or disable this DNS record
dynamic_update_enabled
Enable dynamic update
Boolean Only for A and AAAA records
managed
Managed
Boolean
dynamic_update_url
Dynamic update URL
String
created_at
Created_at
Datetime
updated_at
Updated_at
Datetime

Update

Input parameters

ParameterTypeRequiredDetails
user
User
Resource no
content
Content
String no

Default: null

ttl
TTL
Integer no

Optional TTL in seconds, defaults to zone TTL

Default: null

priority
Priority
Integer no

Optional priority, used for MX and SRV records

Default: null

comment
Comment
Text no

Optional comment

Default: null

Validation rules
RuleDetails
Length
  • Maximum length: 255 characters (inclusive).

Validation error message: length must be at most 255

enabled
Enabled
Boolean no

Enable or disable this DNS record

Default: true

dynamic_update_enabled
Enable dynamic update
Boolean no

Only for A and AAAA records

Default: false

Output parameters

ParameterTypeDescription
id
ID
Integer
dns_zone
DnsZone
Resource
user
User
Resource
name
Name
String Domain name, @ as alias to origin, * for wildcards
type
Type
String node, storage or mailer
content
Content
String
ttl
TTL
Integer Optional TTL in seconds, defaults to zone TTL
priority
Priority
Integer Optional priority, used for MX and SRV records
comment
Comment
Text Optional comment
enabled
Enabled
Boolean Enable or disable this DNS record
dynamic_update_enabled
Enable dynamic update
Boolean Only for A and AAAA records
managed
Managed
Boolean
dynamic_update_url
Dynamic update URL
String
created_at
Created_at
Datetime
updated_at
Updated_at
Datetime