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?
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!
i can ping to github fine. only gitlab had a problem. okay i’ll add the gitlab ip to hosts for now.
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
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.