I need a simple C++ program, it will change dns servers for all network devices.
Registry key of dns server is:
Dns servers are: 184.108.40.206 - 220.127.116.11
Single computer may use more than one device. Please apply this changes to all devices listing after \interfaces\ directory.
--> First event is checking [url removed, login to view] if connection is successful or not. We will change dns server only if pc can't access to Youtube.
Because, this program will published to Youtube-banned countries.
Display the screen #1 while checking youtube connection.
Youtube connection checking events:
- try to connect [url removed, login to view] on 80 port.
- find in html code "[url removed, login to view]". because youtube-banned countries will display a html code already, means of that is every connection will be successful. we must find a code what will displaying only on youtube.com.
- if you see "[url removed, login to view]", connection is successful. if you don't see, isn't successful.
--> if connection is successful, display screen #2 (look at attached file).
? ? Don't change dns server.
--> if connection isn't successful, display screen #3.
? ? Ask to user if he want to change dns servers or not.
--> if user clicks to yes, change dns servers and display screen #4.
? ? Ask to user if he want to reboot or not.
--> if user clicks to no, display screen #5.
Please note that, checking [url removed, login to view] connection must take 5 seconds at least. reason of this is, user must understand what happening. if it will not take 5 seconds, this screen will be displayed about 0.5 sec. only.
Program title: Youtube Unban
I need to recompile it with VS2008. Please send the sources compliatable with Visual Studio 2008.
I attached everyting that you need.
Thank you very much.
I attached the screens.