I do both. Sometimes I tell the player the DC, sometimes I don't.
Typically, I tell the player the DC, if there are incremental results that might arise from their check. For example, I might say, "You'll find out okay information on a 15, better information on a 20, and really good...