Cache hostname lookups.