Google云DNS:点裸域到www? [英] Google cloud DNS: point naked domain to www?

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

问题描述

我保持使用简单的App引擎应用程序的owon.ro域名。
我也使用谷歌云dns。



这些是dns记录:


  1. 具有IP地址的记录:

    owon.ro. - >

    216.239.32.21

    216.239.34.21

    216.239.36.21

    216.239.38.21


  2. CNAME

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


还有一些MX记录。



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



我还尝试使用@通配符作为A记录,但也不行。

如果你去owon.ro,你会看到一个404页面,但是www子域名是有效的。



我错过了什么?



谢谢

解决方案

Dan Cornilescu。



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



如果没有,您需要按照以下步骤操作:

控制台>应用引擎>设置>自定义域。


在这里,在第二步,您将不得不将 www 指向应用程序(使用第二个选项),然后单击添加。

然后还可以通过选择第一个选项并再次单击添加,将裸体域指向它。



所以如果我理解正确,您将使用 www 子域和裸域将服务器应用于将裸域重定向到 www 与Google应用案例一样。



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



而我的 DNS记录如下


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

These are the dns records:

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

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

And also some MX records.

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.

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.

Am I missing something?

Thank you

解决方案

Found the answer in the end thanks to Dan Cornilescu.

If you use Google Apps you can set up to redirect the naked domain to 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.

In the end, my custom domain tab looked like this.

And my DNS records looked like this

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

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