The three legendary sennin were all students of hokage, curtosy of the opening credits. So that should tell you that all of them were from konoha. As for Jiriya's head protector, you'll find out later.