ping is working, but no browsing

Incase you can ping to any website (ping http://www.google.co.uk) but browsing is not working in your webbrowser while your computer is attached to wireless connection.

Issue following commands:

sudo ip link set wlan0 down 
sudo ip addr flush wlan0 
sudo ip link set wlan0 up
sudo dhclient -r
sudo dhclient