appliance networking dns servers: set

Set the DNS server configuration. If you set the mode argument to "DHCP", a DHCP refresh is forced.


HTTP request

PUT https://{server}/rest/appliance/networking/dns/servers

Request Body Structure:


Request Body Parameters:

Name Type Description
bold = required
config DNS_server_config DNS server configuration.
config.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.

config.servers string[] List of the currently used DNS servers.


HTTP Status Code: 200



HTTP Status Code Type Description
500 error Generic error