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

方式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

你可能感兴趣的:(如何将自己的域名指向自己在github上的博客)