Skip to main content
POST
Create a DNS server

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required

A name for the DNS server. The name cannot contain only whitespace.

Required string length: 1 - 128
Example:

"dns-ashburn"

network_id
string<uuid>
required

The ID of the Network that owns the DNS server.

Example:

"0de011ae-ee53-4df4-ba96-754728eb5aad"

region_code
string
required

The region in which to create the DNS server. The region must support DNS servers and be available to the account.

Example:

"ashburn-va"

zones
string[]

Additional zones besides private.telnyxcompute.com, which every server serves. Names are lowercased without a trailing dot. Zones cannot repeat, nest, or overlap the built-in zone or a forward zone. Zones and forward zones together can contain at most 19 names.

Maximum array length: 19
Maximum string length: 248
Example:
forwarders
string<ipv4>[]

Up to three IPv4 resolvers reachable through the Network for names outside the served and forwarded zones. An omitted or empty list uses public upstream resolvers instead. Loopback, unspecified, multicast, link-local, and DNS server addresses in 172.27.240.0/21 are not allowed.

Maximum array length: 3
Example:
forward_zones
object[]

Zones whose queries go to resolvers on the Network. These zones cannot overlap each other, served zones, or private.telnyxcompute.com. Zones and forward zones together can contain at most 19 names. Forward-zone resolvers must accept DNS over TCP port 53.

Maximum array length: 19
Example:

Response

The DNS server. Deployment and removal complete asynchronously.

data
DnsServer · object