If you are facing this issue means you have misconfiguration of DNS records in your mac. Please follow the steps to resolve your issue.
1. Open System Preferences
2. Navigate to Network -> Advanced -> DNS.
3. In the left side column add in the IP as 22.214.171.124 and 126.96.36.199.
4. Click OK -> Apply.
Now go to your browser and check google.com