Right Click on the wifi symbol > Click on "Open Network Preferences"
Click on the "Advanced" button
1. Click on the DNS Tab

2. Click on the DNS Server number under the DNS Servers area

3. Click the Minus (-) Symbol

4. Click OK
Click Apply and try to browse the internet

The internet connection issue should be resolved