Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clone from GitHub.com "Temporary failure in name resolution" error

Tags:

github

I encountered problems to download floodlight from GitHub. I have googled and tried various methods to clone it. Below is the error:

  mininet@mininet-vm:~$ git clone git://github.com/floodlight/floodlight.git
  Cloning into 'floodlight'...
  fatal: unable to connect to github.com:
  github.com:Temporary failure in name resolution

I'm currently running mininet in a virtual machine and i have tried with https/http instead of git. Still, I encountered errors when trying to download floodlight from GitHub.

My virtual machine network is connected with NAT and GitHub.com is up and running. However, when I tried to ping to GitHub.com it won't work. How do I resolve this DNS server issue?

like image 605
Dylan Avatar asked Aug 09 '26 20:08

Dylan


2 Answers

I had a similar issue, but found it to be intermittent. What I found to resolve the issue was the following:

  1. Make sure you have the latest version of virtual box. The latest versions support ping from a NAT guest to the Internet - although I've had mixed success with that
  2. If I was using a dongle connection to the Internet, i.e. not persistent, I found that I sometime s I had to reboot the guest, after the connection to the Internet had been made.

So nothing particularly technical, and ceratinly nothing to do with forwarding rules. But it worked for me,

michael

like image 138
Michael Moulsdale Avatar answered Aug 11 '26 11:08

Michael Moulsdale


You must be behind a proxy

git config --global http.proxy %HTTP_PROXY% to configure the proxy to be the same as yoyur system proxy. IF %HTTP_PROXY% is not set(Try echo %HTTP_PROXY% if it echoes a hostname, no problem. If it echoes back %HTTP_PROXY%, you got a problem), try setting the proxy manuallt

git config --global <Host>:<Port> (Generally 8080)

IF you don't know the proxy, go to Internet Explorer>>Tools>Internet Options>>Connections>>LAN Settings and check the proxy server address

IF its configured by a script such as .pac, open this file. there should be a function findProxyForUrl or something, its simple pythonish code. You should be able to figure it out from there.

like image 32
SoWhat Avatar answered Aug 11 '26 11:08

SoWhat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!