Question

i cannot ping gitlab.com from my droplet (tried on other droplet)

i try to do git pull and it return this

ssh: Could not resolve hostname gitlab.com: 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 gitlab.com it return this

ping: gitlab.com: 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?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello!

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?

Regards, Krzysiek

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

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 gitlab.com 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:

172.65.251.78 gitlab.com www.gitlab.com

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

Hope this helps!

Regards, Alex