I need to switch Internet Protocol Version 4 (TCP/IPv4) and Internet Protocol Version 6 (TCP/IPv6) settings for DNS server configuration from "Obtain DNS server address automatically" to hard coded values (for Google's DNS servers) and back. It's kind of a hassle to do manually (I need to go to Control Panel-Network and Internet-Network Connections, open Wireless Network Connection 2, then open Properties for the corresponding version, enter the DNS server values, and repeat for the other one). Is there a utility or script that would automate the process? Thanks.
Wifi – How to automate DNS server reconfiguration for TCP/IPv4 and TCP/IPv6 in Windows 7
automationdomain-name-systemscriptingtcpipwifi
Related Topic
- Windows Server 2012 DNS: default forwarders disables root hints
- Router – DNS server in use is not that as specified in TCP/IPv4 properties. Why? [Windows 7]
- docker – Fixing DNS Resolution Issues on Ubuntu 14.04 Desktop Host
- How to prevent Windows Server from adding external IP addresses for the domain controller into the DNS
Best Answer
From elevated command prompt (or from .bat file):
or
You can just replace ipv4 with ipv6 (and proper address of course).