โดเมน API - จดทะเบียนโดเมน API - ICANN ผู้รับจดทะเบียน API - White Label โดเมน Service

Start Building with NiceNIC โดเมน API v2

API access is free fหรือ every active NiceNIC user. ไม่ reseller upgrade is required. Configure ของคุณ API credentials, make a safe test request, then add the โดเมน, DNS, billing, compliance หรือ WHMCS wหรือkflows ของคุณ application needs.

สร้างเนมเซิร์ฟเวอร์ลูก

จดทะเบียน a new DNS server fหรือ use with a specific โดเมน

Content-Type application/json
หมวดหมู่ nameserverhost
การทำงาน add

พารามิเตอร์คำขอ

ชื่อพารามิเตอร์ ประเภท คำอธิบาย ตัวอย่าง
domain สตริง ชื่อโดเมน example.com
dns สตริง (3-30) ชื่อเซิร์ฟเวอร์ DNS (ต้องตรงกับโดเมน) ns1.example.com
ip สตริง ที่อยู่ IP ของเซิร์ฟเวอร์ DNS 192.168.1.1

พารามิเตอร์การตอบกลับ

ชื่อพารามิเตอร์ ประเภท คำอธิบาย
dns สตริง ชื่อเซิร์ฟเวอร์ DNS
ip สตริง ที่อยู่ IP ของเซิร์ฟเวอร์ DNS

ตัวอย่างคำขอ

                                    
{
    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" 
}

ผลลัพธ์ที่ส่งกลับ

0 OK ตอบกลับสำเร็จ
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        {
            "dns": "ns1.example.com",
            "ip": "192.168.1.1"
        }        
    }
}
400 คำขอไม่ถูกต้อง
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
ลิขสิทธิ์ © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. สงวนลิขสิทธิ์ทั้งหมด. · U.S. Affiliate: NICENIC LLC