is this sentence grammatically correct?

1. Did you know that he has cheated on you?

2. Do you know that he always has been telling you to stop making a joke?


I guess I am quite bit confused when it comes to do/did question sentence , whether I can follow it up with present perfect / past perfect tense.