How to reestablish connection to Solr when the DNS is updated to point to a new IP address


Description

The IP address of the Solr server gets cached on the .NET level. This behavior might lead to connection issues if the solr.search connection string value is a domain name instead of a static IP address. If the DNS mapping for the domain is changed to a new IP address, the changes are not picked up by Sitecore instances until the instances have been restarted.
This is a common scenario when using SearchStax Disaster Recovery. This article provides recommendations on how to reestablish connection to Solr when the DNS is updated to point to a new IP address.

Solution

To reestablish connection to Solr when the DNS is updated to point to a new IP address, consider one of the following options: