Meaning Behind IP Address In GitHub

Hello everyone,

my domain provider requested that I put my GitHub-Repository IP Address in order to connect it with my domain. (I am aware that you can connect your repo with your domain otherwise, but since I want to change the repo that is connected to my domain, the domain provider asked for the IP-Address of the new repo). So how can I obtain such an information?

Thank you for your help

In general, you can retrieve information about the IP ranges that GitHub uses for various purposes via the API, see About GitHub's IP addresses - GitHub Docs.

However the question seems odd, unless you’re trying to set up a custom domain for a Pages site. If it’s that, Managing a custom domain for your GitHub Pages site - GitHub Docs should tell you what you need.

2 Likes

First of all, thank you for your response. I’ve already setup a custom domain for Pages site. As you already know, this means that I used a repo for that. Unfortunately, I have no access to that repo anymore. So I want to connect my domain to another repo. Everytime I want to generate a new CNAME file, I can’t because the CNAME file is located in the old repo. So I contacted godaddy.com that has my domain and they told me to give them the IP address of the new repo. I agree with you, when they told me that it seemed quite weird. So my question is: Is there a way to have the IP address of a particular repo. If not would someone know how to change the connexion between the domain and a new repo. Thanks a lot

I don’t think that’s going to work: The sites for both repositories would be hosted on the same GitHub Pages infrastructure, so you can’t tell them apart by IP.

Does that mean GitHub Pages rejects the setting? Would make sense, because you’re effectively trying to take the domain away from another repository. :sweat_smile:

If it’s that, you’ll probably have to contact GitHub support and disconnect the domain from the old repository. I can’t say what proof they’d need for that, though. The contact form is here: GitHub Support

1 Like

Hello,

actually yes. I am trying to take the domain away from another repo. Since I am the domain-owner, It makes sense for me to do that. If this is not possible, it would mean that my domain is practically hijacked by the guys who own the old repo. I don’t know if that is logical. Anyway thank you very much for you help. I appreciate it.

1 Like