I would use the regular expression on the host name:
. need to be escaped because otherwise they match any character. The parenthesis around
\.exh with the question mark make it optional to allow either version of your host name to be matched. The
^ at the beginning and
$ at the end ensure that it is an exact match. The help indicates that Google uses regular expressions in "find" mode.
An alternate regular expression that should do the same thing would be:
In this case it has an explicit or with
| right in the middle and uses parenthesis to ensure order of operations is correct. This version is quite a bit longer, but might be easier to understand. It would also be easier to add additional host names to this version.
You should set it up like this: