简体   繁体   English

将.tk域指向一个域名

[英]Point a .tk Domain to a Domain Name

I am hosting my website on a servce (open shift, heroku, ect) that doesn't give you a static ip. 我将我的网站托管在一个服务(开放式班次,heroku等)上,该服务无法为您提供静态IP。 How do I point my free .tk domain to it. 如何将我的免费.tk域指向该域名。 I set up my web site service to accept it, however, .tk domains only allow you to point to a static ip, not domain name. 我将网站服务设置为接受它,但是.tk域仅允许您指向静态ip,而不能指向域名。 It has a custom dns service but am not sure how to do this. 它具有自定义的dns服务,但不确定如何执行此操作。 Could you please give a quick explanation. 你能给我一个简短的解释。 If I need a dns, please tell if there are any free service will fit the bill. 如果我需要DNS,请告知是否有任何免费服务符合要求。 Thanks for all the help. 感谢您的所有帮助。

@siamii, I did it with a cname. @siamii,我用一个cname做到了。 After creating your .tk domain, go to the domain panel and click modify domain. 创建.tk域后,转到“域”面板,然后单击“修改域”。 On the list of options using the mydottk free domain service (The default option) add a new cname. 在使用mydottk免费域服务的选项列表(默认选项)上,添加一个新的cname。 The cname should be structered as, Host domain www.[YourDomainHere].tk and Ip Address: [your heroku web site address]. cname的结构应为主机域www。[YourDomainHere] .tk和IP地址:[您的heroku网站地址]。 Now go to your app on heroku.com and go to domain settings on your app's settings page. 现在,转到heroku.com上的应用程序,然后转到应用程序的设置页面上的域设置。 Add your www.[YourDomainHere].tk to that setting and you should be good to go. 将www。[YourDomainHere] .tk添加到该设置中,您应该会很好。

Note: You cannot point a top level( [YourDomainHere].tk) domain to heroku with the mydottk free domain service. 注意:您无法使用mydottk免费域服务将顶级([YourDomainHere] .tk)域指向heroku。 The primary way you do this is to redirect from [YourDomainHere].tk to www.[YourDomainHere].tk but the free domain service cannot do that. 这样做的主要方法是从[YourDomainHere] .tk重定向到www。[YourDomainHere] .tk,但是免费域服务无法做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM