[英]How does heroku know if you are the one who bought the domain name?
I am trying to use a custom domain name in Heroku.我正在尝试在 Heroku 中使用自定义域名。 So I was following the general directions and I had a question about it.因此,我遵循了一般指示,对此我有疑问。
So I want to get rid of the herokuapp.com in example.herokuapp.com, which requires that I buy the example.com domain name.所以想去掉example.herokuapp.com中的herokuapp.com,这需要我购买example.com域名。
It says in the first step "Confirm that you own the custom domain name. If not, you can buy one with a domain registration service."它在第一步中说“确认您拥有自定义域名。如果没有,您可以购买带有域名注册服务的域名。”
How does heroku know that I bought example.com in the domain registration service? heroku怎么知道我在域名注册服务中买了example.com?
If you look at your Herokuapp.com dashboard, for your particular app, you'll find that heroku has issued you a specific domain name.如果您查看 Herokuapp.com 仪表板,对于您的特定应用程序,您会发现 heroku 已为您颁发了一个特定的域名。 Something like some-custom-string.herokudns.com
.类似于some-custom-string.herokudns.com
东西。 Notice that this is herokuDNS.com
which is different from herokuapp.com
(herokuapp.com is used to access your website publicly).请注意,这是herokuDNS.com
与herokuapp.com
不同(herokuapp.com 用于公开访问您的网站)。 Only you have access to this custom dns string.只有您有权访问此自定义 dns 字符串。
When you buy a domain name from a registrar, it'll usually also provide a DNS server.当您从注册商处购买域名时,它通常还会提供 DNS 服务器。 You'll then add a CNAME record in your DNS settings to point to your heroku provided some-custom-string.herokudns.com
url.然后,您将在 DNS 设置中添加 CNAME 记录,以指向 heroku 提供some-custom-string.herokudns.com
字符串。 Since only you've access to your DNS server settings, if Heroku finds that the cname entry is present in your DNS records, it'll be a confirmation that you own the domain.由于只有您可以访问您的 DNS 服务器设置,如果 Heroku 发现您的 DNS 记录中存在 cname 条目,这将确认您拥有该域。 The steps to do this are described here .此处描述了执行此操作的步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.