Resolve peer hostnames with caching