Conditional formatting is the right way to go.
I'm using your example data, and assuming it starts from A1
For your conditional formula, you will need to highlight from A1 to the end of your data.
The formula would be:
=NOT(ISERROR(LOOKUP(9E+307,SEARCH($B$1:$B$5,A1),$B$1:$B$5)))
What this does is:
- Search your list of domains in B1:B5 for the text in A1 (A1 is not fixed in position, so as any excel formula, it will be adjusted for subsequent cells).
The result from this would be: {5, #VALUE!, #VALUE!, #VALUE!, #VALUE!, #VALUE!}
- We then look for the largest value in the list that is smaller than 9E+307
The result would then be 5
- We then test if there was an error (which would happen if the domain is not found)
- Finally, we invert the result so the function will return TRUE if a value was found, and FALSE if not. Inversion is done because conditional highlighting only does the highlighting when the result of the formula is true
Example, with a helper column of =LOOKUP(9E+307,SEARCH($B$1:$B$5,A1),$B$1:$B$5)
so you can see what is returned from the main part of the conditional format formula:

substring
,vlookup
andconditional formatting
– Michaël Benjamin Saerens Oct 15 '13 at 15:19highlight cells based on a condition
– user2140173 Oct 15 '13 at 15:43