如何将自己的域名指向自己在github上的博客

2023-05-16

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

##方式1 第一种方式是使用A记录,A记录的定义如下:

An A-record is an entry in your DNS zone file that maps each domain name (e.g. yourdomain.com) or subdomain (e.g. subdomain.yourdomain.com) to an IP address. In other words, the A-record specifies the IP address to which the user would be sent for each domain or subdomain. This means that you can have different subdomains of your website resolving to different IP addresses, which could be useful if they are hosted on different servers.

我们将域名指向192.30.252.153192.30.252.154即可。这种方式有个好处,就是可以使用不带www的短域名(例如letiantian.me)。

##方式2 第二种方式是使用CNAME。将自己的域名指向github为你分配的域名。

##资料 Tips for configuring an A record with your DNS provider
Tips for configuring a CNAME record with your DNS provider
About custom domains for GitHub Pages sites

转载于:https://my.oschina.net/letiantian/blog/285160

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

如何将自己的域名指向自己在github上的博客 的相关文章

随机推荐