I believe that there are six degree of freedom for each 3D joint rather than for each member, that to be more specific, since the beam-column joint has to behave as simple connection (Not rigid connection) the DOF those related to the ROTAION TRANSLATION will be eliminated and just need to deal with DISPLACEMET TRANSLATION, taking into account the frame either 3D or 2D.
Hope this my be helpful.