Hi,
I am doing exams soon so I need to start studying. I have set up OpenDNS to block some websites that may distract me but I don't need them blocked all the time. As OpenDNS offers no settings for time to block I need to change the DNS server back to my ISP's when the blocking is not needed. The command to change DNS in Command Prompt is
"C:\Netsh Interface ip set dns "Local Area Connection" static "[DNS GOES HERE]"
But with a START command in front of it this command does not work when put into a batch program
.
Does anyone know either a better way of changing the DNS at different times or the correct way to insert this command into a batch file.
Thanks
Jake
I am doing exams soon so I need to start studying. I have set up OpenDNS to block some websites that may distract me but I don't need them blocked all the time. As OpenDNS offers no settings for time to block I need to change the DNS server back to my ISP's when the blocking is not needed. The command to change DNS in Command Prompt is
"C:\Netsh Interface ip set dns "Local Area Connection" static "[DNS GOES HERE]"
But with a START command in front of it this command does not work when put into a batch program
Does anyone know either a better way of changing the DNS at different times or the correct way to insert this command into a batch file.
Thanks
Jake
My Computer
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- Dell
- OS
- Windows 7 Professional x64
- CPU
- Intel i5 2470
- Memory
- 8GB DDR3
- Graphics Card(s)
- INtel HD Graphics
- Monitor(s) Displays
- 1: DELL SE197FP 2: COMPAQ FP5315
- Antivirus
- McAfee Security Center
- Browser
- Google Chrome