Get your taxes done using TurboTax

You are essentially correct (cap gains usually excluded, but can definitely be included under certain circumstances consistent with law and the trust doc) and that term (DNI) is defined in the Internal Revenue Code.

See https://www.law.cornell.edu/uscode/text/26/643#