2

I got one domain example.com on app engine. All subdomains a.example.com, b.example.com, c.example.com... have to point on example.com.

I'm configuring everything from Cloud DNS of Google Cloud, my configuration is like that:

*.example.com.  CNAME   300 ghs.googlehosted.com.
example.com.    AAAA    300 xxxx:xxxx:xxxx:xx::xx
example.com.    AAAA    300 xxxx:xxxx:xxxx:xx::xx
example.com.    AAAA    300 xxxx:xxxx:xxxx:xx::xx
example.com.    AAAA    300 xxxx:xxxx:xxxx:xx::xx
example.com.    A       300 xxx.xxx.xx.xx
example.com.    A       300 xxx.xxx.xx.xx
example.com.    A       300 xxx.xxx.xx.xx
example.com.    A       300 xxx.xxx.xx.xx

Already tried to do something like

*.example.com.  CNAME   300 example.com.

But not working.

If I use DIG to check my DNS, I got correct answer

;; ANSWER SECTION:
a.example.com.          300     IN      CNAME   ghs.googlehosted.com.
ghs.googlehosted.com.   218     IN      A       xxx.xxx.xxx.xxx

When I go on a.example.com from my browser, i got ERR_CONNECTION_CLOSED

tidpe
  • 211

2 Answers2

3

As @John Hanley mentioned, Google Managed SSL Certificate does not support wildcard (*.example.com).

I've just created a new certificate with Letsencrypt and wildcard seems working.

tidpe
  • 211
1

If you are using a Google Managed SSL Certificates then wild cards will not be supported. You can use wildcards to map subdomains at any level, starting at third-level subdomains.

Kindly refer to the below link for:

Mapping custom Domains : https://cloud.google.com/appengine/docs/standard/python/mapping-custom-domains#wildcards

Securing Custom Domains with SSL : https://cloud.google.com/appengine/docs/flexible/python/securing-custom-domains-with-ssl

Nikhil
  • 118