PowerShell Logo Small

Set-DnsClientServerAddress



This is the built-in help made by Microsoft for the command 'Set-DnsClientServerAddress', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Sets DNS server addresses associated with the TCP/IP properties on an interface.

SYNTAX


Set-DnsClientServerAddress [-InterfaceAlias] <String[]> [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ResetServerAddresses]
[-ServerAddresses <String[]>] [-ThrottleLimit <Int32>] [-Validate] [-Confirm] [-WhatIf] [<CommonParameters>]
Set-DnsClientServerAddress [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ResetServerAddresses] [-ServerAddresses <String[]>]
[-ThrottleLimit <Int32>] [-Validate] -InputObject <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Set-DnsClientServerAddress [-AsJob] [-CimSession <CimSession[]>] [-PassThru] [-ResetServerAddresses] [-ServerAddresses <String[]>]
[-ThrottleLimit <Int32>] [-Validate] -InterfaceIndex <UInt32[]> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-DnsClientServerAddress cmdlet sets one or more IP addresses for DNS servers associated with an interface. This cmdlet statically adds
DNS server addresses to the interface. If this cmdlet is used to add DNS servers to the interface, then the DNS servers will override any DHCP
configuration for that interface.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?LinkId=262532
Get-DnsClientServerAddress

REMARKS

<

Examples


EXAMPLE 1

PS C:\>Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses ("10.0.0.1","10.0.0.2")



This example sets the DNS server addresses on a specified interface with the index value of 12.




EXAMPLE 2

PS C:\>Set-DnsClientServerAddress –InterfaceIndex 12 -ResetServerAddresses



This example resets the DNS client to use the default DNS server addresses specified by DHCP on the interface with an index value of 12.