Simple DNS resolver with a cache for AnyEvent