I need a program that will silently change the DNS settings on the computer it is being run on. Must change the DNS settings for all internet connections (Ethernet, wifi, etc).
This program will be called as an optional part of an NSIS installer.
I need this in C++ and to work on XP, Vista, and 7. I also need it to be less than 100 kB in size, preferably less than 20 kB.