OS X El Capitan: Connected to Wi-Fi / Personal Hotspot network but not connected to Internet
Try setting a new network location. Network Preferences/edit top drop down/new location/apply If that doesn't work you may need to reinstall OS to resolve software issue.