Last Updated: February 25, 2016
· 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 nodename nor servname provide

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

sudo launchctl unload -w /System/Library/LaunchDaemons/
sudo launchctl load -w /System/Library/LaunchDaemons/

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.