This is a general fix for the common problem of Chromecast connecting to your wifi but not accessing the internet. On my connection the Chromecast would work sporadically and then drop. I have two Buffalo routers with one as a wireless bridge and both running DD-WRT. All I had to do was set the DNS to Google's servers, 8.8.8.8 and 8.8.4.4.