---
title: Account 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**

# Account Custom Nameservers

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

client.customNameservers.get(CustomNameserverGetParams { account\_id } params, RequestOptionsoptions?): SinglePage<[CustomNameserver](https://developers.cloudflare.com/api/typescript/resources/custom%5Fnameservers#%28resource%29%20custom%5Fnameservers%20%3E%20%28model%29%20custom%5Fnameserver%20%3E%20%28schema%29) { dns\_records, ns\_name, status, 2 more } \>

GET/accounts/{account\_id}/custom\_ns

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

client.customNameservers.create(CustomNameserverCreateParams { account\_id, ns\_name, ns\_set } params, RequestOptionsoptions?): [CustomNameserver](https://developers.cloudflare.com/api/typescript/resources/custom%5Fnameservers#%28resource%29%20custom%5Fnameservers%20%3E%20%28model%29%20custom%5Fnameserver%20%3E%20%28schema%29) { dns\_records, ns\_name, status, 2 more } 

POST/accounts/{account\_id}/custom\_ns

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

client.customNameservers.delete(stringcustomNSID, CustomNameserverDeleteParams { account\_id } params, RequestOptionsoptions?): SinglePage<[CustomNameserverDeleteResponse](https://developers.cloudflare.com/api/typescript/resources/custom%5Fnameservers#%28resource%29%20custom%5Fnameservers%20%3E%20%28model%29%20custom%5Fnameserver%5Fdelete%5Fresponse%20%3E%20%28schema%29)\>

DELETE/accounts/{account\_id}/custom\_ns/{custom\_ns\_id}

##### ModelsExpand Collapse 

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

A single account 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

CustomNameserverDeleteResponse \= string

Unused