I usually don't have this problem butafter reading the man-page it seems that "ndots" might be the solution. I don't quite follow how to config it, but I found this in the manpage:
From the explanation of "search" on the resolv.conf-manpage:
Code:
Resolver queries having fewer than ndots dots (default is 1) in them
will be attempted using each component of the search path in turn until a match is found.
Explanation of ndots in the resolv.conf manpage:
Code:
ndots:n
sets a threshold for the number of dots which must appear in a name given to res_query(3) (see
resolver(3)) before an initial absolute query will be made. The default for n is 1, meaning that if
there are any dots in a name, the name will be tried first as an absolute name before any search list
elements are appended to it. The value for this option is silently capped to 15.
I don't fully follow, but based on this it seems that if you set "ndots" to a high number it should search all (both in your case) the domains before giving up.