---
title: Tenant Custom Nameservers
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api/typescript)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Tenant Custom Nameservers

##### [List Tenant Custom Nameservers](https://developers.cloudflare.com/api/typescript/resources/tenant%5Fcustom%5Fnameservers/methods/get)

client.tenantCustomNameservers.get(stringtenantTag, RequestOptionsoptions?): SinglePage<[TenantCustomNameserverGetResponse](https://developers.cloudflare.com/api/typescript/resources/tenant%5Fcustom%5Fnameservers#%28resource%29%20tenant%5Fcustom%5Fnameservers%20%3E%20%28model%29%20tenant%5Fcustom%5Fnameserver%5Fget%5Fresponse%20%3E%20%28schema%29) { dns\_records, ns\_name, status, 2 more } \>

GET/tenants/{tenant\_tag}/custom\_ns

##### [Add Tenant Custom Nameserver](https://developers.cloudflare.com/api/typescript/resources/tenant%5Fcustom%5Fnameservers/methods/create)

client.tenantCustomNameservers.create(stringtenantTag, TenantCustomNameserverCreateParams { ns\_name, ns\_set } body, RequestOptionsoptions?): [TenantCustomNameserverCreateResponse](https://developers.cloudflare.com/api/typescript/resources/tenant%5Fcustom%5Fnameservers#%28resource%29%20tenant%5Fcustom%5Fnameservers%20%3E%20%28model%29%20tenant%5Fcustom%5Fnameserver%5Fcreate%5Fresponse%20%3E%20%28schema%29) { dns\_records, ns\_name, status, 2 more } 

POST/tenants/{tenant\_tag}/custom\_ns

##### [Delete Tenant Custom Nameserver](https://developers.cloudflare.com/api/typescript/resources/tenant%5Fcustom%5Fnameservers/methods/delete)

client.tenantCustomNameservers.delete(stringcustomNSID, TenantCustomNameserverDeleteParams { tenant\_tag } params, RequestOptionsoptions?): SinglePage<[TenantCustomNameserverDeleteResponse](https://developers.cloudflare.com/api/typescript/resources/tenant%5Fcustom%5Fnameservers#%28resource%29%20tenant%5Fcustom%5Fnameservers%20%3E%20%28model%29%20tenant%5Fcustom%5Fnameserver%5Fdelete%5Fresponse%20%3E%20%28schema%29)\>

DELETE/tenants/{tenant\_tag}/custom\_ns/{custom\_ns\_id}

##### ModelsExpand Collapse 

TenantCustomNameserverGetResponse { dns\_records, ns\_name, status, 2 more } 

A single tenant custom nameserver.

dns\_records: Array<DNSRecord\>

A and AAAA records associated with the nameserver.

type?: "A" | "AAAA"

DNS record type.

One of the following:

"A"

"AAAA"

value?: string

DNS record contents (an IPv4 or IPv6 address).

ns\_name: string

The FQDN of the name server.

formathostname

Deprecatedstatus: "moved" | "pending" | "verified"

Verification status of the nameserver.

One of the following:

"moved"

"pending"

"verified"

zone\_tag: string

Identifier.

maxLength32

ns\_set?: number

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

maximum5

minimum1

TenantCustomNameserverCreateResponse { dns\_records, ns\_name, status, 2 more } 

A single tenant custom nameserver.

dns\_records: Array<DNSRecord\>

A and AAAA records associated with the nameserver.

type?: "A" | "AAAA"

DNS record type.

One of the following:

"A"

"AAAA"

value?: string

DNS record contents (an IPv4 or IPv6 address).

ns\_name: string

The FQDN of the name server.

formathostname

Deprecatedstatus: "moved" | "pending" | "verified"

Verification status of the nameserver.

One of the following:

"moved"

"pending"

"verified"

zone\_tag: string

Identifier.

maxLength32

ns\_set?: number

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

maximum5

minimum1

TenantCustomNameserverDeleteResponse \= string

Unused.