Dorsal means back as in the back area. Example~ Many dolphins have a pronounced beak and all have a central dorsal fin and sharp teeth for feeding, mainly on squid and fish.
You are right, it is B because, endocrine glands, as part of the endocrine system, they regulate and maintain a constant equilibrium in our bodies, known as homeostasis.