I'm trying to run brew update and get the following error:
brew update
fatal: unable to access 'https://github.com/Homebrew/homebrew.git/': Could not resolve host: github.com
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
It seems like something is messed up in my DNS resolution:
ping github.com
ping: cannot resolve github.com: Unknown host
ping google.com
ping: cannot resolve google.com: Unknown host
Though pinging google public DNS by IP works:
ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=59 time=14.748 ms
I'm able to access google and github via browser just fine. I think some of the configuration for my DNS was changed when I upgraded to the OS X El Capitan beta. I'm not familiar with how that works so any help is appreciated!
UPDATE: It looks like the issue was caused by using my VPN (privateinternetaccess). Any ideas on why that would break 'ping'?