Scenario:
Connector.com
connects toserver.net
, which resolves to20.30.40.50
Connector.com
and20.30.40.50
keep the connection open- DNS is updated so that
server.net
now resolves to7.8.9.10
Should Connector.com
recognize that server.net
now resolves to something different and open a new connection? How should this be handled?
Usually not. DNS is only used to find the address for a specific name but the association (TCP connection) is between two IP addresses and not between two hostnames.
It still might be that your application requires a different behavior. But this would be application logic then and will vary depending on the requirements of the specific application.
Q: Should Connector.com recognize that server.net now resolves to something different and open a new connection?
A: No.
If you wanted Connector.com to establish a new connection you'd have to terminate the existing connection, flush its DNS cache, flush the DNS cache of its upstream DNS servers and make a new connection.