To connect a second monitor to a 2009 27-inch imac is it the mini display port to VGA cable I need or is it the mini dvi to VGA cable?

Apple Mini DVI to VGA Adapter

Apple Mini DVI to VGA Adapter

Product No Longer Available

No Answers have been submitted