在 DNS 提供商端配置,同时将从托管商购买的自定义域添加到托管在 heroku 上的 Web 应用程序
Configuration at DNS provider end while adding custom domain purchased from hostinger to web application hosted on heroku
我希望我的自定义域指向我在 heroku 上托管的网络应用程序。我需要有关如何在托管方进行配置的帮助。我已经执行的步骤。
- 从托管商处购买了域名。
- 在 heroku 应用程序上,我有 运行 以下命令
$ heroku domains:add samplecustomdomain.com
$ heroku domains:add www.samplecustomdomain.com
$ heroku domains
This command gives output something like -
Domain Name DNS Record Type DNS Target
samplecustomdomain.com ALIAS or ANAME xyz1.herokudns.com
www.samplecustomdomain.com CNAME xyz2.herokudns.com
在 Hostinger 端,点击管理 samplecustomdomain.com 后,我得到两个用于设置的选项卡。
a) 域管理 - 它具有 更新名称服务器、创建子名称服务器等选项
b) DNS 区域 - 它可以添加选项,例如 A(主机)、CNAME(别名)、MX(邮件交换器)、TXT(文本) , AAAA(IPv6 地址记录) , NS(名称服务器) , SRV , CAA*
我想我必须修改 CNAME(别名) 才能注册我的应用程序。在 CNAME(别名)下,我必须提供以下字段的值
Host -
Points to -
TTL -
请帮助上面的字段需要提供什么值。
在您的 DNS 区域中,添加一条 ALIAS/ANAME/CNAME 记录(如果 Hostinger 有 ALIAS 或 AName,请使用它,如果没有,您可以使用 CNAME):
Host samplecustomdomain.com
Points to xyz1.herokudns.com
TTL 3600 (or use the default if there's any)
然后添加一条CNAME记录:
Host www.samplecustomdomain.com
Points to xyz2.herokudns.com
TTL 3600 (or use the default if there's any)
如果您已有上述记录的记录,则需要删除或编辑现有记录以反映上述情况。
我希望我的自定义域指向我在 heroku 上托管的网络应用程序。我需要有关如何在托管方进行配置的帮助。我已经执行的步骤。
- 从托管商处购买了域名。
- 在 heroku 应用程序上,我有 运行 以下命令
$ heroku domains:add samplecustomdomain.com
$ heroku domains:add www.samplecustomdomain.com
$ heroku domains
This command gives output something like -
Domain Name DNS Record Type DNS Target
samplecustomdomain.com ALIAS or ANAME xyz1.herokudns.com
www.samplecustomdomain.com CNAME xyz2.herokudns.com
在 Hostinger 端,点击管理 samplecustomdomain.com 后,我得到两个用于设置的选项卡。
a) 域管理 - 它具有 更新名称服务器、创建子名称服务器等选项
b) DNS 区域 - 它可以添加选项,例如 A(主机)、CNAME(别名)、MX(邮件交换器)、TXT(文本) , AAAA(IPv6 地址记录) , NS(名称服务器) , SRV , CAA*
我想我必须修改 CNAME(别名) 才能注册我的应用程序。在 CNAME(别名)下,我必须提供以下字段的值
Host -
Points to -
TTL -
请帮助上面的字段需要提供什么值。
在您的 DNS 区域中,添加一条 ALIAS/ANAME/CNAME 记录(如果 Hostinger 有 ALIAS 或 AName,请使用它,如果没有,您可以使用 CNAME):
Host samplecustomdomain.com
Points to xyz1.herokudns.com
TTL 3600 (or use the default if there's any)
然后添加一条CNAME记录:
Host www.samplecustomdomain.com
Points to xyz2.herokudns.com
TTL 3600 (or use the default if there's any)
如果您已有上述记录的记录,则需要删除或编辑现有记录以反映上述情况。