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.
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.