问题原文
原帖链接 · alete · CC BY-SA 4.0
...yet another question about github pages and custom domains, sorry. I couldn't find a solution in other questions, I think that's very specific to my registrar. Also, I'm not a webmaster or sysadmin, this would be simply my online resume (CV).
I have a domain from Argentina's nic.ar registrar => mydomain.com.ar
Currently, my domain is delegated to a free web hosting where I was experimenting with. I want it to point to my current github page myuser.github.io, but I simply don't know how.
Github gave me 4 IP addresses in order to redirect:
- 185.199.108.153
- 185.199.109.153
- 185.199.110.153
- 185.199.111.153
but my registrar only accepts hostnames:
What options that are free and simple do I have to make my .com.ar domain point to my github page?
已采纳解答
原帖链接 · Emirodgar · CC BY-SA 4.0
Patrick Mevzek already told you a possible solution in a comment. I want to provide you with another one with more benefits using the free version of Cloudflare. That's how I have all my GitHub pages.
First of all, you need to create a free account on Cloudflare and, after that, add your domain. Use the hostnames provided at this point (follow the instructions provided) to point your domain to your Cloudflare account. They should be something like this:
- cass.ns.cloudflare.com
- lou.ns.cloudflare.com
Secondly, you need to point Cloudflare to Github so, go to Cloudflare's DNS menu and create the A records as you've been told in the official guide.
Now you can easily setup redirects (www to non www), SSL certificates, firewall rules, cache, etc.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
