There are exactly two possibilities, here, as far as I can see.
One possibility is that $D_n$ is intended (as you say in your question) to denote the dihedral group with $n$ elements (which is what is usually meant by saying a group has order $n$). However, all dihedral groups have an even number of elements, so under that interpretation, there is no such thing as $D_3,$ and so $D_3\times\Bbb Z_2$ doesn't exist! Since $D_6$ exists (under this interpretation, it is the group of symmetries of an equilateral triangle), it certainly isn't isomorphic to a non-existent group.
The other interpretation, which I suspect is what was intended is that $D_n$ is the dihedral group on $n$ vertices--the group of symmetries of a regular $n$-gon--which has $2n$ elements (order $2n$). Suspect this is the intended meaning since for any odd $n,$ we have that $D_{2n}\cong D_n\times\Bbb Z_2.$ For a proof of this more general result (and an idea of how to prove the specific case in question), see here.