9 dots 3 line solution
Who said that the line had to pass through the exact centre of each dot? That is another assumption you introduced that wasn’t in the problem.
But… there is a solution even simpler still….you can do it with only one line. That solution is here.