def set_dhcp_dns(iface):
 cmd = ['netsh', 'interface', 'ip', 'set', 'dns', iface, 'dhcp']
 __salt__['cmd.run'](cmd, python_shell=False)
 return {'Interface': iface, 'DNS Server': 'DHCP'}

def set_dhcp_dns ( iface ) : cmd = [ 'netsh' , 'interface' , 'ip' , 'set' , 'dns' , iface , 'dhcp' ] __salt__ [ 'cmd.run' ] ( cmd , python_shell = False ) return { 'Interface' : iface , 'DNS Server' : 'DHCP' }
set dns source to dhcp on windows cli example: .