Alt Ad Sunucusu Oluştur
Belirli bir alan adıyla kullanılmak üzere yeni bir DNS sunucusu kaydedin
Content-Type
application/json
kategori
nameserverhost
action
add
İstek parametreleri
| Parametre Adı | Tür | Açıkla | Örnek |
|---|---|---|---|
| domain | Dize | Alan adı | example.com |
| dns | Dize (3-30) | DNS sunucu adı (alan adıyla eşleşmelidir) | ns1.example.com |
| ip | Dize | DNS sunucusu IP adresi | 192.168.1.1 |
Yanıt parametreleri
| Parametre Adı | Tür | Açıkla |
|---|---|---|
| dns | Dize | DNS sunucu adı |
| ip | Dize | DNS sunucusu IP adresi |
İstek Örneği
{
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"
}
Dönen sonuç
0 OK Başarılı yanıt
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.1"
}
}
}
400 Hatalı İstek
{
"code": 400,
"msg" : "Request parameter error",
}






