The cities belonged to Judah. The Bible says that “the coast of their [Dan’s] inheritance” was Zorah and Eshtaol, which means that Dan’s inheritance bordered these cities.