Do not stick to the last used server address when a new DNS lookup is done, REF 15378
The previous solution for sticking to the last used server address was implemented in f2ba4af0 and came from iowrt. Our requirement is to try to switch to the primary server at each new DNS lookup, hoping that the server has recovered from being offline.
Edited by Iryna Antsyferova