Soak dal in water for 15 minutes. If making rice, also soak for 15 minutes. Drain, rinse and set aside.
Put the dal ingredients into the instant pot.
If making rice, place the rice ingredients into an oven-safe container. Place a trivet into the pot with the dal, and then place the oven-safe container on top of the trivet.
Secure the lid, close the pressure valve and cook for 6 minutes at high pressure.
Naturally release pressure for 10 minutes, then open the valve to release any remaining pressure.