The rheological properties of macromolecules represent one of the fundamental features of polymer systems which expand the possibilities of using and developing new materials based on them. In this work, we studied the shear-stress relaxation of the second generation PAMAM and PPI dendrimer melts by atomistic molecular dynamics simulation. The time dependences of relaxation modulus G(t) and the frequency dependences of the storage G′(ω) and loss G″(ω) moduli were obtained. The results were compared with the similar dependences for the polycarbosilane (PCS) dendrimer of the same generation. The chemical structure of the dendrimer segments has been found to strongly influence their mechanical relaxation. In particular, it has been shown that hydrogen bonding in PAMAM dendrimers leads to an entanglement of macromolecules and the region is observed where G′(ω) > G″(ω). This slows down the mechanical relaxation and rotational diffusion of macromolecules. We believe that our comprehensive research contributes to the systematization of knowledge about the rheological properties of dendrimers.