While at it, also implementing new OS resolver chosing logic, keeping only 2 LAN servers at any time, 1 for current one, and 1 for last used one.
On some platforms, the gateway may not be a usable DNS. So extending the current approach to allow retrieving DNS from many sources.