How do we set DNS in CloudSQL wiith private IP only. I am using the server cert from the CloudSQL instance but get the following error when using the private IP in nodejs code.
"code":"ERR_T │
│ LS_CERT_ALTNAME_INVALID","message":"Hostname/IP does not match certificate's altnames: Host: localhost. is not cert's CN: <CloudSQL_Instance_NAME>"
Understand the the private ip can be assigned a domain name but I have the following concern
- I don't own any domain, how do we use Cloud DNS to get a google domain subdomain or equivalent?
- PrivateIP will change when Instance edited i.e. when Network is changed, then Cloud DNS would point to wrong IP.
- As per the above error message its not clear which domain the certificate is minted for it just shows the fully qualified cloud SQL instance name.
I understand cloud SQL proxy is solution to everything related to ths but isn't really there any other option?