I'd pull the battery and retry, but the only other two options are the wifi is turned off, or, more likely, you didn't type the code right.
you can sometimes see if that is true by trying to connect to another network somewhere (like in a coffee shop). If it works there, but not at home, you typed the code wrong.
Same problem here. I currently have a new Wifi installed at home. My laptop and my Sonyericsson worked fine, but me BLACK BERRY did not. It could connect to the Wifi, but when I tried with browser, Jivetalk, Google map, etc... there were same error: bad DNS. But if I tried with other wifi at some coffee shops, it worked! Weird! Now I can use any wifi, except for my own one!
Any advice would be appreciated.
Posted from my CrackBerry at wapforums.crackberry.com