---
title: Tenant Custom Nameservers
---

[Skip to content](#%5Ftop) 

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

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/python/resources/tenant%5Fcustom%5Fnameservers/methods/get)

tenant\_custom\_nameservers.get(strtenant\_tag)  \-> SyncSinglePage\[[TenantCustomNameserverGetResponse](https://developers.cloudflare.com/api/python/resources/tenant%5Fcustom%5Fnameservers#%28resource%29%20tenant%5Fcustom%5Fnameservers%20%3E%20%28model%29%20tenant%5Fcustom%5Fnameserver%5Fget%5Fresponse%20%3E%20%28schema%29)\]

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

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

tenant\_custom\_nameservers.create(strtenant\_tag, TenantCustomNameserverCreateParams\*\*kwargs)  \-> [TenantCustomNameserverCreateResponse](https://developers.cloudflare.com/api/python/resources/tenant%5Fcustom%5Fnameservers#%28resource%29%20tenant%5Fcustom%5Fnameservers%20%3E%20%28model%29%20tenant%5Fcustom%5Fnameserver%5Fcreate%5Fresponse%20%3E%20%28schema%29)

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

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

tenant\_custom\_nameservers.delete(strcustom\_ns\_id, TenantCustomNameserverDeleteParams\*\*kwargs)  \-> SyncSinglePage\[[TenantCustomNameserverDeleteResponse](https://developers.cloudflare.com/api/python/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 

class TenantCustomNameserverGetResponse: …

A single tenant custom nameserver.

dns\_records: List\[DNSRecord\]

A and AAAA records associated with the nameserver.

type: Optional\[Literal\["A", "AAAA"\]\]

DNS record type.

One of the following:

"A"

"AAAA"

value: Optional\[str\]

DNS record contents (an IPv4 or IPv6 address).

ns\_name: str

The FQDN of the name server.

formathostname

Deprecatedstatus: Literal\["moved", "pending", "verified"\]

Verification status of the nameserver.

One of the following:

"moved"

"pending"

"verified"

zone\_tag: str

Identifier.

maxLength32

ns\_set: Optional\[float\]

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

maximum5

minimum1

class TenantCustomNameserverCreateResponse: …

A single tenant custom nameserver.

dns\_records: List\[DNSRecord\]

A and AAAA records associated with the nameserver.

type: Optional\[Literal\["A", "AAAA"\]\]

DNS record type.

One of the following:

"A"

"AAAA"

value: Optional\[str\]

DNS record contents (an IPv4 or IPv6 address).

ns\_name: str

The FQDN of the name server.

formathostname

Deprecatedstatus: Literal\["moved", "pending", "verified"\]

Verification status of the nameserver.

One of the following:

"moved"

"pending"

"verified"

zone\_tag: str

Identifier.

maxLength32

ns\_set: Optional\[float\]

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

maximum5

minimum1

str

Unused.