My NetGear router has been acting more and more weird the last months. I don’t really know why, but sometimes the DNS resolver inside just locks up and misbehaves something wicked. It would be a lot easier if it could just forward the DNS settings through DHCP, but it doesn’t do that, it just always sets itself as the dns resolver. Maybe it started appearing when I installed Vista, dunno.
So I made some scripts to change this. Just sharing it with the world in case someone else has a problem.
SetTeliaDNS.cmd:
@echo off
set IF="Wireless Network Connection"
netsh interface ipv4 set dns %IF% static none
netsh interface ipv4 add dns %IF% 195.67.199.24
netsh interface ipv4 add dns %IF% 195.67.199.25netsh interface ipv4 show config %IF%
SetDchpDNS.cmd:
@echo off
set IF="Wireless Network Connection"
netsh interface ipv4 set dns %IF% dhcp
netsh interface ipv4 show config %IF%
Using the first, I switch my wireless network over to predefined DNS through my ISP, Telia. Using the second, I switch back to whatever I got through DHCP – when I use another wireless network, for instance.
And then, just a quick link to these two in the TrueLaunchBar menus, and… good to go.
