Domain API - Domain Registration API - ICANN Registrar API - White Label Domain Service

Start Building with NiceNIC Domain API v2

API access is free for every active NiceNIC user. No reseller upgrade is required. Configure your API credentials, make a safe test request, then add the domain, DNS, billing, compliance or WHMCS workflows your application needs.

Update Nameservers

The update operation allows you to change domain nameserver

Content-Type application/json
category domain
action change_dns

Request parameters

Parameter Name Type Describe Example
domain String (3-60) Domain name example.com
dns1 Server Modify primary nameserver ns1.my-ndns.com
dns2 Server Modify secondary nameserver ns2.my-ndns.com
... Server More DNS, limit to 6 nsX.my-ndns.com

Request Example

                                    
{
    curl https://api.nicenic.net/v2/?category=domain&action=change_dns&domain={domain}&dns1={dns1}&dns2={dns2}&...={...} 
      -H "Authorization: username:api_secret" 
      -H "Content-Type: application/json" 
}

Return result

0 OK Successful response
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {        
    }
}
400 Bad Request
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
Copyright © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. All Rights Reserved. · U.S. Affiliate: NICENIC LLC