"Do you know who he is?" is better. If you ask directly, then the subject and verb are reversed, such as "Who is he?". That is not the case in your examples. The noun clause "who he is" is the object of the verb "know". The subject and verb are not reversed in that clause because it is no longer a question. Someone is confusing the two cases.