Perhaps it would be better to say 5 points. A 'dot' is not a mathematical object. Of course, if the 5 points happened to lie on a single line, there would be only one line through them so the question really should be "What is the largest number of lines that can be drawn through 5 points in a plane?"
Choosing any point, you can draw a line through it and anyone of the 4 other points. That is, each point lies on 4 lines. If we multiply the number of points by the number of lines "per" point, we have 4(5)= 20. But each line accounts for 2 points so the correct answer is 20/2= 10.
In fact, the largest number of lines that can be draw through n points in a plane is n(n-1)/2.
Notice by the way that we can argue this in a slightly different way: choose one point (call it p1) out of the n points. You can draw lines through it and each of the other n-1 points: n-1 lines. Now pick another point (p2)( and draw lines through it and each of the other points, NOT counting p1. There are n- 2 "other points" (not p1 or p2) so n-2 such lines. Pick a third point, p3, and we can draw n- 3 lines through n-3 "other points" (not p1, p2, or p3). We can go through all of the points until we have used them all up and have (n-1)+ (n-2)+ (n-3)+ ...+ 3+ 2 +1 lines. That is the sum of the first n-1 positive integers which is well know to be n(n-1)/2. (It is perhaps better known that the sum of the first n integers is n(n+1)/2 but that immediately gives the first.)