My answer is not so thoroughly researched that I have sources to cite, but it never failed me. It might have come from Persichetti, but that book is in the basement presently. Anyway, here it is:
Use as your "dominant" any diatonic (i.e. no sharps or flats beyond the key signature) major or minor chord such that when considered along with the tonic you use exactly ONE of the two notes, fa (scale degree 4) and ti (scale degree 7).
In the case of D Dorian, which uses the same key signature as C major (no sharps or flats), here's how that would look. The tonic is a D minor chord, D-F-A. The two scale degrees 4 and 7 are F and B. So the dominant could be any major or minor triad in C Major that does not include the pitch B.
Let's look at all the possibilities:
E minor includes a B.
G major includes a B.
B diminished isn't a major or minor triad.
So avoid those.
A minor, C major, and F major are all safe to use. Of these choices, F major is the weakest because it's root is a third away from tonic, C major is OK, and A minor is probably strongest. Which you use depends on your melody and what sounds good to you
You might wonder why to be so careful to avoid B and F together. They are a diminished fifth/augmented fourth apart, and this is significant. That interval has a very strong "magnetic" pull towards the tonic. That B really wants to rise to C and the F wants to fall to E. So if you aren't careful and you put them too close together, your cadence will flop. When you reach D it won't sound totally resolved. That is because the B/F combination makes you feel C major, and D minor is not the tonic in C. It's also why a G7 chord, or the progression F-G-C or Dm-G-C work so well.