dns: Incorporate caching