Windows 10: Will these batch files work to change DNS servers to OpenDNS and back?
-
Will these batch files work to change DNS servers to OpenDNS and back?
I found the following on a forum post from 2007. I'm apprehensive, however, to try it because I obviously don't want to cause anything to stop working properly.
1:
netsh interface ip set dns "Local Area Connection" static 208.67.222.222
netsh interface ip add dns name="Local Area Connection" addr=208.67.220.2202:
2:
netsh interface ip set dns "Local Area Connection" dhcp
-
-
Looks correct to me. Should work fine and not cause you problems. It's possible that your interface might not be called "Local Area Connection". You can check with
netsh interface show interface.
-
This is what I get when I run "netsh interface show interface"
Code:
Admin State State Type Interface Name
-------------------------------------------------------------------------
Enabled Disconnected Dedicated Ethernet
Enabled Connected Dedicated Wi-Fi
Does that show what I need?
-
-
What is the point of this opendns is a great DNS with protection so why would you want to change it by default a lot the time the router is set as DNS?
-
Samuria said:
What is the point of this opendns is a great DNS with protection so why would you want to change it by default a lot the time the router is set as DNS?
I frequent a local library and, in order to access their wifi, the OpenDNS servers must be removed for some reason. I can switch them back once I've gotten past their acknowledgment page but I simply cannot get to this page with the custom servers. Consequently, I was looking for a batch script that would allow me to quickly remove, then re-add the OpenDNS servers.
-
Or you could use NetSetMan - 2 clicks to change to a preset network.
Related Threads
Greetings
I still write batch files like I always did since dos.
In windows XP all kinds of %~ variables were added to the vocabulary.
Do we still have those or were they replaced by other in windows 10?
where do I find a list of batch file...
Good afternoon all,
I've been trying to change DNS servers for the best part of a day but Windows 10 (both Home & Pro) is steadfastly resisting my attempts.
I've set the IPv4 adapter settings for both Google and OpenDNS servers but when I run...
Somehow (most likely my fault) .bat files have defaulted to opening my text editor (UltraEdit) instead of executing.
I took all the file associations out of UltraEdit and re-started - no change
I followed internet advice to remove
...
I was trying the File History backup utility and of course it defaulted to a preset of folders/files as I did not "Remove" any. Actually what I really want to is only backup a single folder that I warehouse selected data in (C\special docs) What I...
Hey all,
I just upgraded to Windows 10 last night, and I've been playing around with the new File Explorer. One thing I tried was the batch rename function (by which I mean just selecting multiple files and clicking "rename"). I quickly realized...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules