Skip to content
Start here

Account Custom Nameservers

List Account Custom Nameservers
client.CustomNameservers.Get(ctx, query) (*SinglePage[CustomNameserver], error)
GET/accounts/{account_id}/custom_ns
Add Account Custom Nameserver
client.CustomNameservers.New(ctx, params) (*CustomNameserver, error)
POST/accounts/{account_id}/custom_ns
Delete Account Custom Nameserver
client.CustomNameservers.Delete(ctx, customNSID, body) (*SinglePage[string], error)
DELETE/accounts/{account_id}/custom_ns/{custom_ns_id}
ModelsExpand Collapse
type CustomNameserver struct{…}

A single account custom nameserver.

DNSRecords []CustomNameserverDNSRecord

A and AAAA records associated with the nameserver.

Type CustomNameserverDNSRecordsTypeoptional

DNS record type.

One of the following:
const CustomNameserverDNSRecordsTypeA CustomNameserverDNSRecordsType = "A"
const CustomNameserverDNSRecordsTypeAAAA CustomNameserverDNSRecordsType = "AAAA"
Value stringoptional

DNS record contents (an IPv4 or IPv6 address).

NSName string

The FQDN of the name server.

formathostname
DeprecatedStatus CustomNameserverStatus

Verification status of the nameserver.

One of the following:
const CustomNameserverStatusMoved CustomNameserverStatus = "moved"
const CustomNameserverStatusPending CustomNameserverStatus = "pending"
const CustomNameserverStatusVerified CustomNameserverStatus = "verified"
ZoneTag string

Identifier.

maxLength32
NSSet float64optional

The number of the set that this name server belongs to.

maximum5
minimum1