DNS-Eintrag aktualisieren
Aktualisieren eines vorhandenen DNS-Eintrags anhand der ID
Content-Type
application/json
Kategorie
dns
action
update_record
Anforderungsparameter
| Parametername | Typ | Beschreibung | Beispiel |
|---|---|---|---|
| domain | String (3-60) | Domainname | example.com |
| id | Integer | ID des zu aktualisierenden DNS-Eintrags | 12345 |
| value | String | Neuer Wert des DNS-Eintrags | 192.168.1.2 |
| pri | Integer (Optional) | Neuer Prioritätswert (für MX- und SRV-Einträge) | 20 |
Antwortparameter
| Parametername | Typ | Beschreibung |
|---|---|---|
| id | Integer | DNS-Datensatz-ID |
Anfragebeispiel
{
curl https://api.nicenic.net/v2/?category=dns&action=update_record&domain={domain}&id={id}&value={value}&pri={pri}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
Rückgabeergebnis
0 OK Erfolgreiche Antwort
{
"code": 0,
"msg" : "success",
"data" : {
{
"id": 12345
}
}
}
400 Ungültige Anfrage
{
"code": 400,
"msg" : "Request parameter error",
}






