1

My MacBook sometimes can't connect to the internet. Chrome displays "Resolving host" but a web page doesn't appear. Safari also doesn't work. Interestingly, sometimes Google seems to work as the only web page (also auto complete in Google). After some time (or sometimes when I call "dscacheutil -flushcache") it works for a few minutes and then the issue occurs again.

Other devices always work so it has to be related to my MacBook. I'm using two DNS servers pointing to 8.8.8.8/8.8.4.4. When the issue is present Ping doesn't work (ping: cannot resolve www.google.com: Unknown host) and Lookup doesn't work too (www.google.com -> The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.))

A few month ago I had the same issue. At the time I had to delete some files in the LaunchDeamons-folder but I can't remember which ones...

Anything I could try?

Update: If I add a second "Location" (in the Network preferences) I can simply switch to the other location and I'm back in the Internet... pretty tedious solution...

  • How about settings I described here: apple.stackexchange.com/a/245986/145449 the situation is different, but these would be first things to try. – techraf Jul 20 '16 at 7:19
  • I just tried but after a few minutes the problem is back... – Dunken Jul 21 '16 at 18:28
  • Just for grins and giggles, does the problem exist if you connect via Ethernet? Can you test that out? – Allan Aug 28 '17 at 18:46
  • Yes, this seems to work but this not really an option... – Dunken Sep 1 '17 at 7:00
  • 1
    If it works in Ethernet (on the same network), the problem isn't related to DNS. The issue is the adapter. To prove this, try a USB WiFi adapter - a cheap one (or better yet borrowed) will do fine since it's for testing. If the problem goes away, it's your WiFi Airport card. – Allan Sep 1 '17 at 15:33
1

Does the issue eventually come back when creating another location? If not, this is being caused by settings.

  • I use two locations as a workaround. Whenever I switch locations it works again for some minutes. – Dunken Aug 30 '17 at 7:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .