Skip to main content

Change Default NS

Arvancloud has allocated new NSs for domains that use DNS and CDN. Registration of these NSs that have the "ir" TLD may not be possible for some domains. If you are facing this issue, you can change your default NSs to NSs with net and com TLD by going to your domain's Dashboard in Arvancloud CDN panel.

Then replace the new NSs that are displayed in the domain registrar panel.

You can also send this request through the API, as in the example below:

curl --location --request POST 'https://napi.arvancloud.ir/cdn/4.0/domains/example.com/ns-keys/use-optional-keys' \
--header 'authority: napi.arvancloud.ir' \
--header 'accept: application/json, text/plain, */*' \
--header 'authorization: API KEY 1 2 3 4' \
--header 'cache-control: no-cache' \
--header 'content-type: application/x-www-form-urlencoded'

Using Custom NS

One of the useful features of Arvancloud DNS is customizing Nameservers. With this feature, you can activate Arvancloud CDN and DNS services for your domain using dedicated NSs.

This feature is available in the professional and enterprise plan, and you must upgrade your account plan before activating it.

To use this feature, after entering the user panel, enter the CDN and then the "DNS records" section.

Next, in the domain "Customize Domain NS" section, enter your customized nameservers and then confirm this change.

If you want to change these values ​​through the API, you can use the following sample request:

curl --location --request PUT 'https://napi.arvancloud.ir/cdn/4.0/domains/example.com/ns-keys' \
--header 'authority: napi.arvancloud.ir' \
--header 'accept: application/json, text/plain, */*' \
--header 'authorization: API KEY 1 2 3 4' \
--header 'content-type: application/json' \
--header 'origin: https://panel.arvancloud.ir' \
--data '{"ns_keys":["ns1.example.com","ns2.example.com"]}'

Next, Arvancloud assigns IPs to your NSs, which you need to copy and register in your domain registrar as Glue IP.

After making this change, your nameservers will be changed to custom NSs.

NSs can also be enabled at the user account level. This way, these nameservers will be applied to all your domains. To make these settings, contact Arvancloud's support team.