Original: http://www.5x54.com/article/html/201010/28100225.html
Suppose you want to modify the DNS address of the "local area connection" of the network card, the method is as follows:
Modify the primary DNS address to "192.168.1.1":
netsh interface ip set dns name="local connection" source=static addr=192.168.1.1
Modify the alternate DNS address to "202.96.209.133":
netsh interface ip add dns name="local connection" addr=202.96.209.133 index=2
If you want to reset DNS, just change the IP to empty, for example:
netsh interface ip set dns name="local connection" source=static addr=