How to change DNS server IP address

configurationconsoledomain-name-systemwindows-xp

How can I change the DNS server IP address in Windows XP from command line?
I don't want to do it from UI every time I need since it requires a lot clicks.

Best Answer

In a command prompt:

netsh interface ip set dns "local area connection" static 10.0.0.1

You can list the interfaces on your PC using:

netsh interface ip show interfaces