Skip to main content

Change Default NSs

Arvancloud has recently assigned new NSs to domains that use its DNS and CDN. Registering these NSs, which have the .ir extension, may not be possible for some domains with an extension other than .ir. If you face this problem, you can go to your domain's dashboard in the Arvancloud CDN panel and change your default NSs to NSs with the .net and .com extensions.

Then replace the NSs in your domain registrar's panel with the new NSs shown.

You can also send this request via API, as in the following example:

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 NSs​

One of the useful features of Arvancloud Cloud DNS is the ability to customize nameservers. With this feature, you can activate Arvancloud CDN and DNS services for your domain using your own custom NSs.

This feature is available on the Professional and Enterprise plans, and you need to upgrade your account's plan before enabling it.

To use this feature, log in to the Arvancloud panel, go to CDN, and then DNS Records.

Next, in the Change Domain NSs section, enter your custom nameservers in the related fields and confirm the change.

If you want to change these values via API instead of the panel, 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"]}'

Arvancloud then assigns IPs to your NSs, which you need to copy and register as Glue IPs at your registrar.

After this change, your nameservers change to the customized NSs.

You can also enable custom NSs at the account level, so these nameservers apply to all of your domains. To set this up, contact Arvancloud support.

Enter your custom NSs along with the IPs provided in this section in your domain registrar's panel as Glue IPs.

It may take up to 24 hours for the changes to fully apply.