Last Updated: February 25, 2016
·
1.269K
· lukasz-madon

Could not resolve hostname

I have a new MacBook Pro with Maverick. I wanted to push the changes to github, but on git push origin master I got an error Could not resolve hostname github.com: nodename nor servname provide

I tried to ping a domain - nothing happens. I tried to bounced DNS

sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

and other tips. Still Nothing. Turning WIFI off and on again helped

I think it started when I migrated a new model with Alembic. Postgres transaction hang. Not sure if migration caused that or DNS couldn't resolve postgres URI and hence the problem.