dns: use quantifier instead of OR in is_valid_host regex