Adds up to five name servers to the specified domain name. This only works if name server management is enabled.
https://backoffice.hostcontrol.com/api/v1/domain/[domain_name]/name-server
Parameter | Required? | Description | Example value |
---|---|---|---|
name_servers | required | Contains a list with nameservers | Please see example request |
POST https://backoffice.hostcontrol.com/api/v1/domain/exampledomainnnn.com/name-server
POST Data
{
"name_servers": [
{
"hostname": "ns-test.hostcontrol.com"
},
{
"hostname": "ns2-test.hostcontrol.com"
},
{
"hostname": "ns1.backupns.nl"
}
]
}
Result
{
"result": [
{
"hostname": "ns-test.hostcontrol.com"
},
{
"hostname": "ns2-test.hostcontrol.com"
},
{
"hostname": "ns1.backupns.nl"
}
],
"success": true
}