New
#1
is there a way to....
is there a way to make a .bat file to automatically change my dns?
is there a way to make a .bat file to automatically change my dns?
Sure, you can have it call netsh:
Code:::// Below sets a network card called "Local Area Connection" to use 192.168.0.1 and 192.168.0.2 ::// Use netsh interface ipv4 show interfaces to get the "name" of the LAN connection(s): netsh interface ipv4 set dnsservers name="Local Area Connection" static 192.168.0.1 validate=no netsh interface ipv4 add dns "Local Area Connection" 192.168.0.2 index=2 validate=no ::// Below will set the interface back to getting the data from a DHCP server: netsh interface ipv4 set dnsservers name="Local Area Connection" dhcp