/config/net/nameserver/server

The IP addresses to use as name servers. If multiple name servers are specified, they are queried in the order in which they appear here.

Get /config/net/nameserver/server

SecurityApiKey
Request
query Parameters
max-depth
integer >= 1

Limit output depth of the response. See Max-Depth.

Example: max-depth=2
filter
string

Response filter string. See Filter-Spec.

Example: filter={foo,bar}
Responses
200

Normal response.

401

Unauthorized response.

get/config/net/nameserver/server
Request samples
Response samples
application/json
{
  • "result": [
    ],
  • "error": "Error message (present if an error occurred)."
}

Replace /config/net/nameserver/server

SecurityApiKey
Request
Request Body schema: application/json
Array
string (configNetNameserverServerItem)

The IPv4 or IPv6 address a DNS server.

Responses
200

Normal response.

401

Unauthorized response.

put/config/net/nameserver/server
Request samples
application/json
[
  • "1.1.1.1",
  • "8.8.8.8",
  • "2606:4700:4700::1111"
]
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}

Update /config/net/nameserver/server

SecurityApiKey
Request
Request Body schema: application/json
Array
string (configNetNameserverServerItem)

The IPv4 or IPv6 address a DNS server.

Responses
200

Normal response.

401

Unauthorized response.

post/config/net/nameserver/server
Request samples
application/json
[
  • "1.1.1.1",
  • "8.8.8.8",
  • "2606:4700:4700::1111"
]
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}

Delete /config/net/nameserver/server

Reset to empty array.

SecurityApiKey
Responses
200

Normal response.

401

Unauthorized response.

delete/config/net/nameserver/server
Request samples
Response samples
application/json
{
  • "status": "OK",
  • "error": "Error message (present if an error occurred)."
}