Only one small .bat file is required for this tutorial, very simple but effective.
These commands will Optain an IP address automatically:
Just make sure of that you change "mobile broadband connetion" to "local area connection" before running this script.
These commands input Comodo SecureDNS info:
Just make sure of that you change "mobile broadband connetion" to "local area connection" before running this script.
Ready-made .bat file for Local Area Connection:
PS: Just make sure of that DNS Client service is set to Automatic and it's running.
These commands will Optain an IP address automatically:
Code: Select all
netsh interface ip set address name="mobile broadband connection" source=dhcp
netsh interface ip set dns name="mobile broadband connection" source=dhcp
Just make sure of that you change "mobile broadband connetion" to "local area connection" before running this script.
These commands input Comodo SecureDNS info:
Code: Select all
netsh int ip set dns "mobile broadband connection" static 8.26.56.26 primary
netsh int ip add dns "mobile broadband connection" 8.20.247.20
Just make sure of that you change "mobile broadband connetion" to "local area connection" before running this script.
Ready-made .bat file for Local Area Connection:
Code: Select all
netsh interface ip set address name="local area connection" source=dhcp
netsh interface ip set dns name="local area connection" source=dhcp
netsh int ip set dns "local area connection" static 8.26.56.26 primary
netsh int ip add dns "local area connection" 8.20.247.20
PS: Just make sure of that DNS Client service is set to Automatic and it's running.
NOTE:
TIP: You can put this .bat file in your Start Menu's Startup folder so it will run automatically each time when you restart your computer
TIP: You can put this .bat file in your Start Menu's Startup folder so it will run automatically each time when you restart your computer