API documentation
چائلڈ نیم سرورز کی فہرست بنائیں
Retrieve all DNS servers fیا a specific ڈومین
Content-Type
application-json
زمرہ
nameserverhost
عمل
list
درخواست کے پیرامیٹرز
| پیرامیٹر کا نام | قسم | تفصیل | مثال |
|---|---|---|---|
| domain | اسٹرنگ | Domain name | 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",
}






