Adding support for hostname cache expiration.