Update DNS servers
PUT/network/dns
Update the system's DNS server configuration.
Request
- application/json
Body
required
servers string[]
New list of DNS servers to configure.
search_domains string[]
New list of search domains to configure.
interface_name string
The name of the network interface to apply DNS configuration to. Must only contain letters and numbers.
Responses
- 202
- 400
- 500
DNS servers update successfully accepted.
Invalid input.
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
A description of the error that occurred.
details string
Additional details about the error, specifying which component failed.
code integerrequired
The error code.
{
"error": "Failed to retrieve network status.",
"details": "Failed to get DNS servers due to network timeout.",
"code": 500
}
Error updating DNS servers.
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
A description of the error that occurred.
details string
Additional details about the error, specifying which component failed.
code integerrequired
The error code.
{
"error": "Failed to retrieve network status.",
"details": "Failed to get DNS servers due to network timeout.",
"code": 500
}
Loading...