I want to run Dunn's test for multiple comparisons with one control, but I don't know how to command to take the right treatment (the control as control), so it takes the first treatment.
Hi, usually the first level of the factor is used as the reference ("control") group.
You can specify the order of the levels explicitely by using the argument "levels" when creating the factor with factor(.). When you only want to ste the reference level without changing (or caring about) the order of the remaining levels, you can use the function relevel(.)
concerning multiple comparison procedures in R I would suggest the multcomp package. There is a nice book "Multiple Comparisons Using R" about this package.
I also attached an example form the book showing how to perform a Dunnett test and also how to specify (change) the control.