def dns_dhcp(interface='Local Area Connection'):
 cmd = ['netsh', 'interface', 'ip', 'set', 'dns', interface, 'source=dhcp']
 return (__salt__['cmd.retcode'](cmd, python_shell=False) == 0)

def dns_dhcp ( interface = 'Local Area Connection' ) : cmd = [ 'netsh' , 'interface' , 'ip' , 'set' , 'dns' , interface , 'source=dhcp' ] return ( __salt__ [ 'cmd.retcode' ] ( cmd , python_shell = False ) == 0 )
configure the interface to get its dns servers from the dhcp server cli example: .