You need to change the DNS server used by IPv6

You have a server that runs a Server Core installation of Windows Server 2012 R2.
You need to change the DNS server used by IPv6.
What should you do?

You have a server that runs a Server Core installation of Windows Server 2012 R2.
You need to change the DNS server used by IPv6.
What should you do?

A.
From Sconfig.configure the Network Settings.

B.
Run the sc.exe command and specify the config parameter.

C.
From Windows PowerShell, run the Set-NetIpv6Protocol cmdlet.

D.
From Windows PowerShell, run the Set-DnsClientServerAddresscmdlet.

Explanation:
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.
PS C:\> Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses
“10.0.0.1”,”10.0.0.2″)
References:
http://technet.microsoft.com/en-us/library/jj592692.aspx
http://technet.microsoft.com/en-us/library/jj590768.aspx



Leave a Reply 8

Your email address will not be published. Required fields are marked *


Mark van Dijk

Mark van Dijk

Why not using sconfig?

Naaman

Naaman

They probably want the method of least effort. sconfig would open the BIOS style gui and would take longer to complete the same task.

lucasdrums

lucasdrums

Actually, you cannot configure IPv6 addresses through SCONFIG, nor Static IP address for local server neither for DNS server. Hence, we need to use Powershell command. I tested this and through SCONFIG it gives an error message “Preferred DNS server could not be set”
The explanation is also wrong, it mentions IPv4 addresses instead of what the question is talking about (IPv6)

ramesh

ramesh

one or more ip addresses for DNS?

Alex

Alex

Sconfig can’t assign any IPv6 addresses.

aerone

aerone

Set-DnsClientServerAddress

simo

simo

The correct answer is: D

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.

Set-DnsClientServerAddress -InterfaceIndex 4 -ServerAddresses