Rovers were drawn against the League Two outfit, with ties set to take place the week commencing August 9.
It will be the first time ever that the two sides have met in knockout competition.
Rovers triumphed 4-1 on their last trip to the Bescott in September 2018.
Rovers exited the Carabao Cup in the first round stage last season after a narrow 3-2 defeat to Blackburn Rovers.
Doncaster Rovers player ratings from the dramatic draw at AFC Wimbledon
Gary McSheffrey delivered this verdict following Doncaster Rovers' late show at AFC Wimbledon
The difference of opinion and slice of luck that led Jack Degruchy to Doncaster Rovers
Recap as Doncaster Rovers produce stirring comeback to draw at AFC Wimbledon
Doncaster Rovers: Birthday boy Gary McSheffrey has got the buzz for his unexpected management shot
More to follow