Change DNSCache module to class.