Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Configure connections using DNS domain names #2047

Draft
wants to merge 1 commit into
base: gh-2043-use-jdbc-url-hostname
Choose a base branch
from

Conversation

hessjcg
Copy link
Collaborator

@hessjcg hessjcg commented Jul 24, 2024

The dialer may be configured to use a DNS name to look up the instance
name instead of configuring the connector with the instance name directly.

Add a DNS TXT record for the Cloud SQL instance to a private DNS server
or a private Google Cloud DNS Zone used by your application. For example:

  • Record type: TXT
  • Name: prod-db.mycompany.example.com – This is the domain name used by the application
  • Value: my-project:region:my-instance – This is the instance connection name
  • Configure the dialer with the cloudsqlconn.WithDNSResolver() option.

Open a database connection using the DNS name:

//TODO

See also: the Cloud SQL Go Connector implementation

Part of #2043

@hessjcg hessjcg changed the title Gh 2043 configure with dns feat: Configure connections using DNS domain names Aug 8, 2024
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch from 46e95c4 to 9d71720 Compare August 8, 2024 19:28
@hessjcg hessjcg changed the base branch from main to gh-2043-use-jdbc-url-hostname August 8, 2024 19:49
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch from 9d71720 to cc206b2 Compare August 8, 2024 19:51
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from b368416 to baa2494 Compare August 13, 2024 16:43
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch from cc206b2 to b57ca6c Compare August 13, 2024 16:43
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from baa2494 to b4fab59 Compare August 13, 2024 16:57
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch 2 times, most recently from 01c0a38 to 1f3d6b7 Compare August 13, 2024 18:31
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from b4fab59 to 7901caf Compare August 13, 2024 18:33
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch 2 times, most recently from 49c7e38 to f3f362e Compare August 13, 2024 18:38
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from 7901caf to c251493 Compare August 13, 2024 18:38
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch from f3f362e to a0c1b4e Compare August 13, 2024 19:15
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from c251493 to a6c517d Compare August 13, 2024 19:15
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch from a0c1b4e to 8aaa907 Compare August 15, 2024 17:41
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from a6c517d to 040a9d1 Compare August 15, 2024 17:41
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch 2 times, most recently from cf7698a to 7475041 Compare August 16, 2024 15:26
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from 040a9d1 to f9960d9 Compare August 16, 2024 15:26
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from f9960d9 to e8f506c Compare August 30, 2024 17:54
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch from 7475041 to 8ceb527 Compare August 30, 2024 17:54
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch from 8ceb527 to cf79bec Compare September 27, 2024 21:22
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch 2 times, most recently from 3bd264a to fe70759 Compare October 1, 2024 16:07
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch from cf79bec to 170f88f Compare October 1, 2024 16:07
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from fe70759 to b0942f4 Compare January 10, 2025 18:20
@hessjcg hessjcg force-pushed the gh-2043-configure-with-dns branch from 170f88f to 4ad47df Compare January 10, 2025 18:20
@hessjcg hessjcg force-pushed the gh-2043-use-jdbc-url-hostname branch from b0942f4 to 6062f19 Compare January 10, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant