appliance networking dns servers: get
Get DNS server configuration.
Request:
HTTP request
GET https://{server}/rest/appliance/networking/dns/servers
No request parameters
Response:
HTTP Status Code: 200
Representation:
{
"value" : {
"mode" : "dhcp",
"servers" : [
"string",
"string"
]
}
}
"value" : {
"mode" : "dhcp",
"servers" : [
"string",
"string"
]
}
}
Response Type:
Name | Type | Description |
---|---|---|
bold = required | ||
value | DNS_server_config | DNS server configuration. |
value.mode | string | Define how to determine the DNS servers. Leave the servers argument empty if the mode argument is "DHCP". Set the servers argument to a comma-separated list of DNS servers if the mode argument is "static". The DNS server are assigned from the specified list. Describes DNS Server source (DHCP,static) Value is one of: dhcp: DNS address is automatically assigned by a DHCP server. is_static: DNS address is static. |
value.servers | string[] | List of the currently used DNS servers. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
500 | error | Generic error |