谷歌云DNS:将裸域指向www? [英] Google cloud DNS: point naked domain to www?

查看:30
本文介绍了谷歌云DNS:将裸域指向www?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我维护 owon.ro 域,该域使用一个简单的 App 引擎应用程序.我也使用谷歌云 dns.

I maintain the owon.ro domain which uses a simple App engine app. I also we use google cloud dns.

这些是 dns 记录:

These are the dns records:

  1. IP 地址记录:
    owon.ro.->
    216.239.32.21
    216.239.34.21
    216.239.36.21
    216.239.38.21

  1. A record with IP addresses:
    owon.ro. ->
    216.239.32.21
    216.239.34.21
    216.239.36.21
    216.239.38.21

CNAME
www.owon.ro.-> ghs.googlehosted.com.

CNAME
www.owon.ro. -> ghs.googlehosted.com.

还有一些 MX 记录.

And also some MX records.

问题是该应用可以从 www 子域访问,并且帮助部分指出这些 IP 地址应该在裸域的 A 记录中以重定向到 www,但它不起作用.

The problem is that the app is reachable from the www subdomain and the help section states that those IP addresses should be in the A record for the naked domain to redirect to www, but it doesn't work.

我也尝试对 A 记录使用 @ 通配符,但这也不起作用.
如果您访问 owon.ro,您将看到一个 404 页面,但 www 子域有效.

I also tried to use @ wildcard for the A record but that doesn't work also.
If you go to owon.ro you will see a 404 page but the www subdomain works.

我错过了什么吗?

谢谢

推荐答案

感谢 Dan Cornilescu,最终找到了答案.

Found the answer in the end thanks to Dan Cornilescu.

如果您使用 Google Apps,您可以设置将裸域重定向到 www.

If you use Google Apps you can set up to redirect the naked domain to www.

如果没有,您将需要按照步骤转到
控制台 > 应用引擎 > 设置 > 自定义域.

在这里,在第二步中,您必须将 www 指向应用程序(使用第二个选项)并单击添加.
然后通过选择第一个选项并再次单击添加将裸域指向它.

因此,如果我理解正确,您将使用 www 子域和裸域来为应用提供服务,而不是像在 Google 应用案例中那样将裸域重定向到 www.

If not, you will need to follow the steps by going to
Console > App engine > Settings > Custom Domain.

In here, at the second step, you will have to point www to the app (by using the second option) and clicking Add.
And then also point the naked domain to it by choosing the first option and clicking Add again.

So if I understand correctly you will server the app using www subdomain and the naked domain in contrast to redirecting the naked domain to www as in the Google apps case.

最后,我的自定义域标签看起来像这样.

我的 DNS 记录看起来像这样

这篇关于谷歌云DNS:将裸域指向www?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆