Whenever I go to Starbucks to work, I connect to T-Mobile hotspot, since it is included with my phone plan. Cool right? Well, not really. At home I have Comcast, whose DNS really really sucks. So I used OpenDNS, which rocks, and never has issues.

Thing is, because hotspot uses DNS to verify you and make you login through their “intranet” page, you can’t use OpenDNS, so I have to go switch my DNS Settings every time I want to connect, that is no good, gotta be an easier way right? Oh there is…dug into “netsh” (I tested this on Windows Vista)

Create two batch files:

————————————–

Set DNS Dynamic.bat

netsh interface ip set dns “Wireless Connection” dhcp

————————————–
and then…

————————————–

Set DNS OpenDNS.bat

netsh interface ip set dns “Wireless Connection” static 208.67.222.222
netsh interface ip add dns “Wireless Connection” 208.67.220.220 index=2

————————————–

this assumes that your wifi connection in your connection is named “Wireless Connection”. Run the Set DNS Dynamic when you are at Starbucks, run the other one when you get home. Easy!

I find this really helpful because in Vista, to get to your properties for TCP/IP is like 18 steps/clicks, which is really a debacle when you just want to get on the Internet at a coffee shop!