Question: do you or did you?
Answer: "Did" is a past tense verb. Therefore, saying "did you know" asks if you have previously known something. "Do" is the present tense, so saying "do you know" would ask if you currently know.