Added a LRU cache for dns query.