i cannot ping from my droplet (tried on other droplet)

Posted March 28, 2020 1.3k views

i try to do git pull and it return this

ssh: Could not resolve hostname No address associated with hostname
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

and when i try to ping it return this

ping: No address associated with hostname

i tried to ping from another droplet i own and the result is the same. is there a problem in your dns?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

Hello, @silentrazgriz

Could you please let me know if you’re having issues to connect/ping only to gitlab or you’re unable to ping other domains/hosts as well?

If the issue is occurring only with what you can do is to alter you droplet’s hosts file and enter the following line:

open the hosts file with your favorite text editor - vi, vim or nano

vim /etc/hosts

add the following line at the bottom of the file:

You can then try to ping or access gitlab using ssh as well.

Hope this helps!


i can ping to github fine. only gitlab had a problem. okay i’ll add the gitlab ip to hosts for now.


Today I have same problem but with github. From 2 droplets I can’t ping github (“No address associated with hostname”) but on my newest one it works. Of course I can add ip to hosts file but I have question - is this your dns related problem or samething else?