Based on first-principles calculation and effective model analysis, we propose that the cubic antiperovskite material Cu3PdN can host a three-dimensional (3D) topological node-line semimetal state when spin-orbit coupling (SOC) is ignored, which is protected by the coexistence of time-reversal and inversion symmetry. There are three node-line circles in total due to the cubic symmetry. Drumheadlike surface flat bands are also derived. When SOC is included, each node line evolves into a pair of stable 3D Dirac points as protected by C4 crystal symmetry. This is remarkably distinguished from the Dirac semimetals known so far, such as Na3Bi and Cd3As2, both having only one pair of Dirac points. Once C4 symmetry is broken, the Dirac points are gapped and the system becomes a strong topological insulator with (1;111) Z2 indices.