def rm_dns(ip, interface='Local Area Connection'):
 cmd = ['netsh', 'interface', 'ip', 'delete', 'dns', interface, ip, 'validate=no']
 return (__salt__['cmd.retcode'](cmd, python_shell=False) == 0)

def rm_dns ( ip , interface = 'Local Area Connection' ) : cmd = [ 'netsh' , 'interface' , 'ip' , 'delete' , 'dns' , interface , ip , 'validate=no' ] return ( __salt__ [ 'cmd.retcode' ] ( cmd , python_shell = False ) == 0 )
remove the dns server from the network interface cli example: .