Bovine mastitis at calving or early lactation is often associated with intra-mammary bacterial infections (IMI) at drying-off (DO) or during the dry period (DP). The IMI risk is associated with management routines at the herd, but knowledge on how farmers and veterinarians comply with national recommendations is scarce, as is their attitudes to the importance of such routines. Therefore, the main aims of this study were to collect information on farmer routines and attitudes, and on veterinary advice and attitudes to DO and DP. Associations between routines and advice, and demographic herd and veterinary variables were also studied. Web-based questionnaires were sent to 2472 dairy farmers and 517 veterinarians. The answers were summarized descriptively, and associations with demographics were evaluated using univariable regression models. The response rate was 14% for farmers and 25% for veterinarians. Routines and advice were in line with recommendations at the time of the study in many, but not all, areas of questioning. Significant associations between herd routines or veterinary advice and demographic variables were also found. Milking system and post-graduate training were the variables associated with the largest number of farmer and veterinary answers, respectively. In conclusion, the results indicate a need for more education on good routines during DO and DP. It was also clear that the national recommendations valid at the time of the study were in need of revision.