ChangeDomain
This the Note Related How to Set Your First Domain
The reasons behind this
Custom Domain Name : By default, the website format of GitHub Pages is’ [username]. github. io ‘, but if you want to use your own domain name, such as’ www.mywebsite. com’, then you need to configure a custom domain name.
DNS Provider : The service provider responsible for resolving domain names to specific IP addresses. For example, when someone tries to access’ www.mywebsite. com ‘, DNS is responsible for telling them which IP address to go to to find the website.
Buy a domain
I buy my domain in https://www1.domain.com/.
and I type the name that I wanted in the search bar.
choose the one that you liked and check out.
Modify the Setting in DNS and in Github
Modify the Setting in DNS
in the website: https://www1.domain.com/controlpanel/foundation/
delete all of them, as long as the content is 66xxx.x142
this is the default, and next change it into the one that we need
add the new ones
The following four A records have been added:
- 185.199.108.153
- 185.199.109.153
- 185.199.110.153
- 185.199.111.153
Add subdomain
If you are using a subdomain name, such as www.zhoujoe.us
, you need to add a CNAME
record:
Name/Host/Alias:
www
Value/Answer/Destination:
your-github-username.github.io
(Replace `your-github-username with your actual GitHub username)
Check DNS broadcast in Global Case
access in the web
Modify the Page Configure in GitHub
click the github repo
choose the settings
click pages
fill the DNS site Costom domain
choose Enforce HTTPS