Set DNS Server

This Automation Manager object sets the DNS server for the local computer.

Privileges

Elevated - Run as administrator.

Input Parameters

Name Type Required Description
Adapter IP Address String Yes The IP address of the Network Adapter. This is the IP address of the local machine in cases where the machine has only one IP address.
DNS Servers String Yes A comma delimited string of IP addresses for DNS servers in the order in which they should be searched.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
Adapter IP Address String Yes 192.168.1.59
DNS Servers (ip, ip,ip): String Yes 192.168.1.70, 192.168.1.71