Inherited from Ottoman Turkish تونك (tünek, “perch, roost”), from Old Anatolian Turkish دونك (dünek), from Proto-Turkic *tünek (“dark place; prison”). By surface analysis, tüne- (“to perch”) + -k.
Practice speaking and memorizing "tünek" and many other words and sentences in Turkish.