Heroku和DNS:可以http://nakeddomain.com瞄准我的heroku应用程序吗?(Heroku & DNS: Can http://nakeddomain.com aim at

编程入门 行业动态 更新时间:2024-10-09 13:22:23
Heroku和DNS:可以http://nakeddomain.com瞄准我的heroku应用程序吗?(Heroku & DNS: Can http://nakeddomain.com aim at my heroku app?)

所以,我一直在阅读相关的一些内容。 最新的一个在这里 ,和heroku doc 。

最后,没有人清楚地回答这个问题:

是否可以将http://nakeddomain.com针对heroku应用程序?

这就是我所知道的:

容易将http://nakeddomain.com重定向到http://www.nakeddomain.com到CNAME http://myapp.herokuapp.com : 我不想这样做 有时可能将ANAME(或ALIAS或CNAME,取决于DNS提供程序词汇表)的顶点名称转换为另一条记录。 但在这种情况下,所有记录都是CNAMEd或ANAMEd(甚至是邮件传递的MX),这使得mail@nakeddomain.com无法路由,因为重定向到heroku应用程序,默认情况下肯定不会处理它。

所以我要重新制定

使用mails@nakeddomain.com时,是否可以将http://nakeddomain.com瞄准heroku应用程序?

怎么样? 使用哪些服务? 如果有额外费用支付多少钱? 我应该坚持使用CNAMing apex名称并将邮件程序移动到另一项服务(Google Apps,或者像Stackoverflow中的某些建议一样使用Sendgrid),还是让它变得更糟?

补贴问题:

一直在阅读Cloudflare是相当不错的。 它对我有什么帮助? 我们目前使用1and1作为DNS提供商? 无论如何它会变得更容易/更难吗? 一直在阅读DNSimple允许比其他DNS提供商更多的功能。 哪一个? 由于我们从我们的应用程序发送自动邮件,因此SPAM过滤也是mails@nakeddomain.com的一个问题,如果这与所需的配置有关。

感谢你的支持

So, I've been reading quite some content about this. The latest one being here, and the heroku doc.

At the end, nobody answers the question clearly:

Is it possible to have http://nakeddomain.com aiming at a heroku app?

Here's what I know:

It is easy to redirect http://nakeddomain.com to http://www.nakeddomain.com to CNAME http://myapp.herokuapp.com : I don't want to do that It is sometimes possible to ANAME (or ALIAS, or CNAME depending on the DNS provider vocabulary) apex name to another record. But in that case, all records are CNAMEd or ANAMEd (even the MX for mail delivery) which makes mail@nakeddomain.com unroutable as redirected to heroku app which certainly doesn't handle it by default.

So I'm going to reformulate

Is it possible to have http://nakeddomain.com aiming at a heroku app while using mails@nakeddomain.com?

How? Which services to use? How much does it costs if there are extras to pay? Should I stick on CNAMing apex name and move the mailer to another service (Google Apps, or Sendgrid as some suggest in Stackoverflow) or is it making it worse?

Subsidary questions:

Been reading Cloudflare is quite nice. How does it help me? We are using 1and1 as a DNS provider currently? Does it make it easier/harder anyhow? Been also reading DNSimple allows more features than other DNS providers. Which one? Since we send automatic mails from our app, SPAM filtering is also a concern from mails@nakeddomain.com, if that has to do with the required configuration.

Thanks for support

最满意答案

Apex域对使用裸域进行电子邮件没有影响 - 完全不同类型的记录。 我有域名使用DNSimple CNAME和相同的域名电子邮件。 一个是cname,另一个是MX reocrd。

我建议使用DNSimple或更便宜的选项DNS变得容易 - 都支持ALIAS记录,每年30美元的计划你得到10个域名。 我通常使用其中一个和Google Apps for email工作正常。 对于发送电子邮件的应用程序,我使用Sendgrid。

CloudFlare是一个缓存层。 要使用它们,您必须将DNS移动到它们。

您可以使用1和1作为注册商,但是您可以使用前面提到的一个来托管DNS - 他们拥有远远优越的服务。 两者都提供CNAME以及DNS级别的重定向,因此您可以将www.domain.com重定向到DNS级别的domain.com而不是应用程序。 如果您使用Sendgrid发送电子邮件,我确信他们有一个SPF记录,您可以将其放在您的域上,以帮助保持电子邮件不受垃圾邮件文件夹的影响。

EDIT:

Cloudflare seems to be the good solution for me: brings CDN and naked domain through changing DNS servers to their own and they have a free plan.


I'm going to answer point by point to explain what I've done:

Is it possible to have http://nakeddomain.com aiming at a heroku app while using mails@nakeddomain.com?

Yes

How? Which services to use?

Only using DNSimple or DNS made easy, as they handle ALIAS/ANAME records.

How much does it costs if there are extras to pay?

Cheapest is DNS made easy with $30/year

Should I stick on CNAMing apex name and move the mailer to another service (Google Apps, or Sendgrid as some suggest in Stackoverflow) or is it making it worse?

Haven't explored this option much, but if your domain provider has decent mail services, no reason to move out of it. It probably costs more money for this service...

Subsidary questions:

Been reading Cloudflare is quite nice. How does it help me?

Finally did not end up using it...

We are using 1and1 as a DNS provider currently? Does it make it easier/harder anyhow?

1and1 doesn't have ALIAS/ANAME records. So I had to use extra service (DNS made easy in my case), they give you a list of dns hosts that need to be replaced in the 1and1 interface and then it takes care of the rest.

Careful: For beginners reading this, updating these entries won't assign changes all over the web at once as DNS is based a lot on caching. You need to take this in account when doing changes, if you have production services. You could end up with weird behaviors between like infinite redirects, cdn not properly redirecting, or OAuth redirects broken for a while ...

Been also reading DNSimple allows more features than other DNS providers. Which one?

More customization is possible with DNS made easy. Interface will be more user-friendly also.

Eg. 301 redirects instead of 302 for 1and1, PTR records and other newest DNS records

Since we send automatic mails from our app, SPAM filtering is also a concern from mails@nakeddomain.com, if that has to do with the required configuration.

I read PTR records were good to prevent SPAM, but as far as I understood, it doesn't make sense when using heroku because the whole point of this record is to aim IP-Address to nakeddomain.com which is not possible as heroku doesn't provide fixed IP-addresses.

Hope it helps.

更多推荐

本文发布于:2023-08-04 19:25:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1419198.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   http   Heroku   DNS   nakeddomain

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!