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

Start Building with NiceNIC Domain API v2

API access is free fatau every active NiceNIC user. Tidak reseller upgrade is required. Configure Anda API credentials, make a safe test request, then add the domain, DNS, billing, compliance atau WHMCS wataukflows Anda application needs.

Buat Nameserver Anak

Daftarkan a new DNS server fatau use with a specific domain

Content-Type application/json
kategori nameserverhost
aksi add

Parameter permintaan

Nama parameter Tipe Deskripsi Contoh
domain String Nama domain example.com
dns String (3-30) Nama server DNS (harus cocok dengan domain) ns1.example.com
ip String Alamat IP server DNS 192.168.1.1

Parameter respons

Nama parameter Tipe Deskripsi
dns String Nama server DNS
ip String Alamat IP server DNS

Contoh Permintaan

                                    
{
    curl https://api.nicenic.net/v2/?category=nameserverhost&action=add&domain={domain}&dns={dns}&ip={ip} 
      -H "Authorization: username:api_secret" 
      -H "Content-Type: application/json" 
}

Kembalikan hasil

0 OK Respons berhasil
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        {
            "dns": "ns1.example.com",
            "ip": "192.168.1.1"
        }        
    }
}
400 Permintaan tidak valid
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
Hak Cipta © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Seluruh Hak Dilindungi. · U.S. Affiliate: NICENIC LLC