I was attempting to clone a github repo on a Slicehost account and received the error below. Its possible that github.com recently updated DNS so if this happens to you then you can use the temporary fix I located on github’s twitter account.
Error:fatal: Unable to look up github.com (port 9418) (Name or service not known)
This error was caused by attempting to clone edavis10’s redmine repo using the command below.
- git clone git://github.com/edavis10/redmine.git
To resolve this issue add the following line to /etc/hosts on your Linux server.
- 126.96.36.199 github.com wiki.github.com gist.github.com assets0.github.com assets1.github.com assets2.github.com assets3.github.com
Make sure to remove this line once DNS is working again from your server.