QuickSetDNS is a new tool that allows you to easily change the DNS servers that are used for your Internet connection. You can set the desired DNS servers from the user interface, by choosing from a list of DNS servers that you defined, or from command-line, without displaying any user interface.

Download it here.

Also see How to change DNS settings in Windows 7 | 8 easily.