Prepare the lentils: Rinse the dry red lentils under cold running water using a fine-mesh strainer. Drain thoroughly. Dice the onions, mince the garlic, and peel and mince the ginger.
Cook the aromatics: Heat the coconut oil or olive oil in a large saucepan or Dutch oven over medium heat. Add the diced onions, garlic, and ginger. Cook for 5–10 minutes, stirring frequently, until the onions are soft.
Add the seasonings: Stir in the yellow curry powder, turmeric, coriander, black pepper, sea salt, and red pepper flakes. Cook for 1–2 minutes, stirring continuously until fragrant.
Combine the main ingredients: Pour in the coconut milk and add the rinsed red lentils. Add the water or vegetable stock. Stir thoroughly, scraping the bottom of the saucepan to incorporate any flavorful bits.
Simmer the dahl: Bring the mixture to a gentle simmer over low to medium heat. Cook uncovered for 25–30 minutes, stirring occasionally, until the lentils are tender and the curry has thickened into a creamy consistency.
Finish and serve: Remove the saucepan from the heat. Spoon the dahl into bowls and garnish with fresh cilantro. Serve on its own or with cooked basmati rice.