Another question for the gurus

I did read that a child born in the UK, if one of the parents is settled here or is a British citizen, is automatically a British citizen.
My question is: how and where exactly can somebody register his child as a British citizen? Is it done when the first passport application is made for the new born? At the register office when you register the birth? Or is it something else?
Thanks