add caching for dns queries (major speedup!)