问题
As it can be available on heroku (wildcard CNAME's), can google cloud run be configured with a single ALIAS type record ?
@ 300 IN ALIAS ghs.googlehosted.com.
回答1:
Google Cloud Run requires a CNAME Resource Record to verify the custom domain.
Cloud Run Custom Domains do not support domain wildcards. You specify a domain name, Google verifies the domain name. There are no configuration settings to support wildcards.
The actual DNS resource records are A, AAAA, and CNAME. However, Cloud Run does not care what you setup provided that the CNAME is correct for domain verification.
ALIAS records are not a standard type of DNS Resource Record. They are vendor specific, act like a CNAME and usually provide optimization of name translation. They are also used in cases where a CNAME cannot be used (zone apex). Cloud Run does not have this limitation so ALIAS records are not required.
Follow the recommended DNS configuration that Cloud Run specifies when setting up a custom domain. Anything else will most likely not be supported by Google.
来源:https://stackoverflow.com/questions/56688274/google-cloud-run-does-domain-mapping-supports-alias-records