headstock
Refers to the part of a stringed instrument (e.g., guitar, violin) that holds the tuning pegs. Also used in machinery for the stationary end of a lathe or similar device.
I attached a tuner to the guitar's headstock.
The lathe's headstock supports the spindle.