pulling in PR 177 - do a dns lookup upon reconnect