Search code examples
gitubuntugitlabhostname

Can not clone my repository in my own git server


I am trying to clone my repository from and in my own gitlab server but this is what i get

fatal: unable to access 'http://git.domain.com/user/repo.git/': Could not resolve host: git.domain.com

but cloning works outside my git server.

Any ideas why my server can't resolve the host but other machines can ?


Solution

  • adding

    37.xx.xxx.xxx git.domain.com

    to

    /etc/hosts file resolved my issue.