Thanks to Jeff Fischer for asking about the /etc/hosts file - turns out that google was listed in the etc/hosts file thereby blocking it.
Macbook pro 15.6.1 can’t get to Google.com on either Safari or Chrome.
Can get to other google properties (mail, calendar, etc.) but when try to go to google.com (or do search through address bar) in Safari it just never loads and in Chrome it gives the page saying it isn’t safe to proceed but even if I say proceed, it still won’t load google.com
Other Macs on same wi-fi network have no problem getting to google.com. I checked network settings for weird DNS or proxies and didn’t find any. I tried incognito window. I checked for bad extensions, malware, etc. Couldn’t find anything.
It’s working for me, so if it is/was a problem on Google’s server, it’s been fixed.
Assuming it wasn’t something transient (please try again, after clearing your browser cache), I would check:
Network settings.
Is a proxy configured?
A network profile?
An unexpected setting (IP address, DNS, etc.?)
Content blocking software
Any ad blocker?
Anti-malware scanner
If you use a content blocker, see if you can temporarily disable it. If that works, see if there’s an available update to the software or its data files.
But since you sound surprised, it’s unlikely you have one installed (unless this is a managed device and your IT department installed it).
… and even if the settings are correct, your cache may be poisoned. If there was a temporary glitch (whether deliberate or accidental) with Google’s DNS, your computer may have downloaded the corrupt entry. DNS entries typically time-out after 8-24 hours, but a bad entry can cause problems until then.
I found this article, which describes how to force-clear that cache:
Agree with @TonyTownsend
Try the command nslookup google.com
on this mac and the one that works. This will tell you which DNS server your mac uses and the IP it will be told to use.
Not a techie here at all so consider the following as possibly naive but — have you completely shut down the Mac, unplugged everything, including peripherals, and restarted with nothing attached except as needed to connect to internet? Have you tried via a hotspot instead of router? Safe mode?