Any significant rise in plasma osmolality is detected by the hypothalamus, which communicates directly with the posterior pituitary gland.
From the en.wikipedia.org
Oxytocin, an extract from the human posterior pituitary gland, was discovered in 1909 when the British pharmacologist Sir Henry H Dale found it could contract the uterus of a pregnant cat.