API documentation
רשום שרתי שמות ילדים
Retrieve all DNS servers fאו a specific דומיין
Content-Type
application-json
קטגוריה
nameserverhost
פעולה
list
פרמטרי בקשה
| שם פרמטר | סוג | תיאור | דוגמה |
|---|---|---|---|
| domain | מחרוזת | שם דומיין | example.com |
פרמטרי תגובה
| שם פרמטר | סוג | תיאור |
|---|---|---|
| dns | מחרוזת | DNS server name |
| ip | מחרוזת | DNS server IP address |
דוגמת בקשה
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=list&domain={domain}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
תוצאת החזרה
0 OK
תגובה מוצלחת
{
"code": 0,
"msg" : "success",
"data" : {
{
"list": [
{
"dns": "ns1.example.com",
"ip": "192.168.1.1"
},
{
"dns": "ns2.example.com",
"ip": "192.168.1.2"
}
],
"total": 2
}
}
}
400 בקשה שגויה
{
"code": 400,
"msg" : "Request parameter error",
}






