net.dns: add an API call to reset the resolver object. (Fixes #65)