@@ -563,16 +563,27 @@ Properties connProps = new Properties();
563563connProps. setProperty(" cloudSqlRefreshStrategy" , " lazy" );
564564```
565565
566+ ### Using Advanced Disaster Recovery and DNS domain names to identify instances
566567
568+ The connector can be configured to use DNS to look up an instance.
569+ Use a DNS name managed by Cloud SQL [ Advanced Disaster Recovery] ( https://docs.cloud.google.com/sql/docs/mysql/use-advanced-disaster-recovery ) ,
570+ or a domain name that you manage.
567571
568- ### Using DNS domain names to identify instances
572+ #### Using Advanced Recovery Write Endpoint DNS Name
569573
570- The connector can be configured to use DNS to look up an instance. This would
571- allow you to configure your application to connect to a database instance, and
572- centrally configure which instance in your DNS zone.
574+ [ Advanced Disaster Recovery] ( https://docs.cloud.google.com/sql/docs/mysql/use-advanced-disaster-recovery )
575+ creates geographically distributed replicas of your Cloud SQL database instance. When you perform
576+ switchover or failover on the database instance, the connector will gracefully disconnect from the
577+ old primary instance and reconnect to the new primary instance.
578+
579+ Follow the instructions in [ Connect using Write Endpoint] ( https://docs.cloud.google.com/sql/docs/mysql/connect-to-instance-using-write-endpoint )
580+ to get the write endpoint DNS name for your primary instance. Then, use this write endpoint DNS
581+ name to configure the connector.
573582
574583#### Configure your DNS Records
575584
585+ The connector may be configured to use DNS that you define as well.
586+
576587Add a DNS TXT record for the Cloud SQL instance to a ** private** DNS server
577588or a private Google Cloud DNS Zone used by your application.
578589
0 commit comments