How to make bone rotation follow location?

I have a character’s head and I want their head to rotate and follow where another object is located so that they’re constantly looking at it. How would I set that up?

Never mind found you can use the “track to” constraint.