appliance networking dns servers: set

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

Request:

HTTP request

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

Request Body Structure:

{
    "config"{
        "mode""dhcp",
        "servers"[
            "string",
            "string"
        ]
    }
}
<?xml version="1.0" ?>
<ns0:Set-Input xmlns:ns0="http://vmware.com/appliance/networking/dns/servers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <config>
    <servers-array>
      <array-item>string</array-item>
      <array-item>string</array-item>
    </servers-array>
    <mode>dhcp</mode>
  </config>
</ns0:Set-Input>

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.

Response:

HTTP Status Code: 200

None

Errors:

HTTP Status Code Type Description
500 error Generic error