In a large pot or Dutch oven, combine the chana dal, 6 cups (1440 ml) (1. 44 L) of water, ginger, garam masala, turmeric, coriander, cayenne, salt, and pepper.
Bring the mixture to a boil.
Once boiling, stir well, cover the pot, and reduce the heat to a simmer.
Cook for about 60 minutes, stirring occasionally, until the dal is tender.
While the dal is cooking, prepare the topping.
Heat the coconut oil in a large skillet over medium-high heat.
Add the chopped onion and cook for about 3 minutes, until it begins to brown.
Reduce the skillet heat to medium-low and continue cooking the onions for another 8 to 10 minutes, until they are deeply browned and caramelized.
Stir in the flaked coconut and cook for 1 more minute until fragrant.
Remove from the heat and set aside.
Once the dal is cooked, use a handheld immersion blender to pulse it a few times directly in the pot. Aim for a slightly smooth consistency, leaving some of the dal intact for texture. (Alternatively, you can carefully transfer a portion to a stand blender and return it to the pot).
Stir in the fresh lime juice and half of the browned onion and coconut mixture.
Ladle the dal into bowls.
Garnish with the remaining browned onions and coconut, and a generous sprinkle of fresh cilantro.