Score:0

Creating a non-public DNS alias for a database in Google Cloud Platform (GCP)

bo flag

I am currently working on setting up a database in Google Cloud Platform (GCP), and I would like to create a non-public DNS alias for it. The purpose of this alias is to provide a more user-friendly name for accessing the database internally within my GCP project, without exposing the actual database endpoint or IP address.

I have explored various options within GCP, but I haven't found a straightforward way to achieve this. My goal is to have a custom DNS alias that points to the database instance, allowing other resources within the project to connect to the database using this alias.

I appreciate any insights or suggestions.

I have tried searching for a solution in the "VPC settings" (Virtual Private Cloud) within the Google Cloud Console. I hoped to find a configuration or option that would allow me to create a DNS alias for my database instance. Additionally, I searched through the GCP documentation, including the official Cloud SQL documentation, to find any guidance or recommended approach for creating a non-public DNS alias.

I was expecting to find a straightforward method or a built-in functionality within GCP, specifically in the Cloud SQL service, that would enable me to create a non-public DNS alias for my database. Ideally, I was hoping to discover step-by-step instructions or documentation explaining the process, best practices, and any potential limitations or considerations associated with this approach

John Hanley avatar
cn flag
Look into Google Cloud DNS Private Zones. https://cloud.google.com/blog/products/networking/introducing-private-dns-zones-resolve-to-keep-internal-networks-concealed
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.