[HostsQueryOption] Add method to take care of validity.