A milking system for milking dairy animals with a preparation station that automatically prepares at least one teat of a dairy animal before applying milking equipment, and a milking station in which one of the animals is milked at a time, the preparation station configured to receive at least one animal to be milked, the milking system has at least one teat cup that receives a teat of the dairy animal to be milked, and the preparation station has a dispensing means that applies a pretreatment solution onto the at least one teat of the animal when it passes through the preparation station, the teat cup having a rinsing function by which the received teat is cleaned prior to the milking process, and the rinsing function removes the pretreatment solution applied onto the teat at the preparation station from the teat in a rinsing process.