Resolve hostames for peers with caching