Aggiorna Nameserver Figlio
Aggiorna l'indirizzo IP di un server DNS esistente
Content-Type
application/json
categoria
nameserverhost
azione
update
Parametri della richiesta
| Nome parametro | Tipo | Descrizione | Esempio |
|---|---|---|---|
| domain | Stringa | Nome dominio | example.com |
| dns | Stringa (3-30) | Nome del server DNS (deve corrispondere al dominio) | ns1.example.com |
| ip | Stringa | Nuovo indirizzo IP del server DNS | 192.168.1.2 |
Parametri di risposta
| Nome parametro | Tipo | Descrizione |
|---|---|---|
| dns | Stringa | Nome del server DNS |
| ip | Stringa | Indirizzo IP del server DNS aggiornato |
Esempio di richiesta
{
curl https://api.nicenic.net/v2/?category=nameserverhost&action=update&domain={domain}&dns={dns}&ip={ip}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Risultato restituito
0 OK
Risposta riuscita
{
"code": 0,
"msg" : "success",
"data" : {
{
"dns": "ns1.example.com",
"ip": "192.168.1.2"
}
}
}
400 Richiesta non valida
{
"code": 400,
"msg" : "Request parameter error",
}






