DI said:
I am trying to add DNS to several remote systems that reside on Workgroups.
The command appears to work (I am returned to a prompt with no error
messages), but when I go to check, the DNS is still empty. The following
syntax looks right:
netsh -r xxx.xxx.xxx.xxx interface ip add dns 10.254.3.3
Is this not correct? Thanks in advance,
DI
It's been a while since I used this, but according to the syntax you're
missing the name of the network connection, which is usually "Local Area
Connection".
C:\>netsh.exe interface ip add dns
Usage: add dns [name=]<string> [addr=]<IP address> [[index=]<integer>]
Parameters:
Tag Value
name - The name of the interface where DNS servers are added.
addr - The IP address for the DNS server you are adding.
index - Specifies the index (preference) for the specified
DNS server address.
Remarks: Adds a new DNS server IP address to the statically-configured list.
By default, the DNS server is added to the end of the list. If an
index is specified, the DNS server will be placed in that position
in the list, with other servers being moved down to make room.
If DNS servers were previously obtained through DHCP, the new
address will replace the old list.
Examples:
add dns "Local Area Connection" 10.0.0.1
add dns "Local Area Connection" 10.0.0.3 index=2