App Engine > 子域名 > 添加A、AAAA和CNAME记录

huangapple go评论51阅读模式
英文:

App Engine > Subdomain > Add A, AAAA and CNAME record

问题

It's okay to add the A and AAAA records but not the CNAME record when adding a subdomain to App Engine.

这是将子域名添加到 App Engine 时可以添加 A 和 AAAA 记录,但不需要添加 CNAME 记录的方式。

英文:

Is it okey to add the A and AAAA records but not the CNAME record when adding a subdomain to App Engine?

Read the following SO threads, but couldn't find the answer:

https://stackoverflow.com/questions/55576228/custom-subdomain-for-google-app-engine-service?rq=2

https://stackoverflow.com/questions/58357461/are-google-app-engine-a-aaaa-records-fixed?rq=2

https://stackoverflow.com/questions/62917498/adding-google-managed-auto-renewing-ssl-custom-domain-with-cloudflare-dns?rq=2

https://stackoverflow.com/questions/75116753/url-not-found-adding-a-custom-domain-gcp-app-engine?rq=2

https://stackoverflow.com/questions/76068452/app-engine-custom-domain-mapping-issue-domain-not-mapping-to-app-engine-service?rq=2

https://serverfault.com/questions/849637/add-a-aaaa-and-cname-record-for-google-app-engine-project-in-google-cloud-plat (most similar to my question, but also didn't provide a valid answer)

Breakdown:

I have a subdomain (subdomain.domain.com) when adding it to App Engine it tell me to add these records:

App Engine > 子域名 > 添加A、AAAA和CNAME记录

I added the A and AAAA records, but get an error when adding the CNAME record..

I read that I cannot have an A record and a CNAME record with the same host (example subdomain.domain.com).

Does that mean that I don't have to add the CNAME record or do I need to add it differently?

I read the instructions here: https://cloud.google.com/appengine/docs/legacy/standard/python/mapping-custom-domains?csw=1#dns_update and several questions on SO, but it's still unclear unfortunately.

What the custom subdomain settings are supposed to look like

subdomain.mydomain.com -> AppEngine

the naked domain mydomain.com does not point to AppEngine

Update

Spoke to Google support and they said that the name of the CNAME record can be subdomain.subdomain.domain.com instead of subdomain.domain.com, but it doesn't seem to make sense :-/

答案1

得分: 1

我最终将所有的A记录和AAAA记录添加到子域,并且CNAME记录是这样添加的(根据Google支持建议)。

www.subdomain.domain.com
subdomain.subdomain.com

看起来似乎不对,但在应用引擎设置页面上显示一切都设置正确。

有趣的是,Facebook甚至建议根本不设置CNAME。

英文:

I ended up adding all the A records and AAAA records to the subdomain and the CNAME record was added like this (as per Google support suggestion).

www.subdomain.domain.com
subdomain.subdomain.com

It doesn't seem right, but in app engine settings page it shows that everything is setup correctly.

Interestingly enough Facebook even recommends to NOT setup the CNAME at all

App Engine > 子域名 > 添加A、AAAA和CNAME记录

huangapple
  • 本文由 发表于 2023年5月18日 04:43:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76276067.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定