Cache hostname.