Child-Nameserver erstellen
Neuen DNS-Server zur Verwendung mit einer bestimmten Domain registrieren
Content-Type
application/json
category
nameserverhost
action
add
Anfrageparameter
| Parametername | Typ | Beschreibung | Beispiel |
|---|---|---|---|
| domain | String | Domainname | example.com |
| dns | String (3-30) | DNS-Servername (muss zur Domain passen) | ns1.example.com |
| ip | String | DNS-Server-IP-Adresse | 192.168.1.1 |
Antwortparameter
| Parametername | Typ | Beschreibung |
|---|---|---|
| dns | String | DNS-Servername |
| ip | String | DNS-Server-IP-Adresse |
Beispielanfrage
{
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"
}
Rückgabeergebnis
0 OK Erfolgreiche Antwort
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.1"
}
}
}
400 Ungültige Anfrage
{
"code": 400,
"msg" : "Request parameter error",
}






