Dal stays hard after frying tarka
Generally you have to soak lentils for many hours, use a pressure cooker to soften them up or a combination of the two. Only masoor dal can be cooked straight away. So I'm guessing you missed a step in whatever recipe you are following.