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
true
Why not using sconfig?
They probably want the method of least effort. sconfig would open the BIOS style gui and would take longer to complete the same task.
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)
one or more ip addresses for DNS?
Sconfig can’t assign any IPv6 addresses.
Set-DnsClientServerAddress
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