ネームサーバーの更新
更新操作では、ドメインのネームサーバーを変更できます。
Content-Type
application/json
カテゴリ
domain
action
change_dns
リクエストパラメータ
| パラメータ名 | 型 | 説明 | 例 |
|---|---|---|---|
| domain | String (3-60) | ドメイン名 | example.com |
| dns1 | サーバー | プライマリネームサーバーを変更 | ns1.my-ndns.com |
| dns2 | サーバー | セカンダリネームサーバーを変更 | ns2.my-ndns.com |
| ... | サーバー | DNSをさらに追加(最大6件) | nsX.my-ndns.com |
リクエスト例
{
curl https://api.nicenic.net/v2/?category=domain&action=change_dns&domain={domain}&dns1={dns1}&dns2={dns2}&...={...}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
戻り値
0 OK リクエスト成功
{
"code": 0,
"msg" : "success",
"data" : {
}
}
400 リクエストエラー
{
"code": 400,
"msg" : "Request parameter error",
}






