add resolver pointer to server class

going to be used later for reconnecting on connection loss