Infectious hematopoietic necrosis virus (IHNV) is the most important pathogen threatening the aquaculture of salmonid fish in China. In addition to the common genogroup J IHNV, genogroup U has been newly discovered in China. However, there is no effective DNA vaccine to fight against this emerging genogroup U IHNV in China. In this study, DNA vaccines encoding the IHNV viral glycoprotein (G) gene of the GS2014 (genogroup J) and BjLL (genogroup U) strains isolated from northern China were successfully developed, which were identified by restriction analysis and IFA. The expression of the Mx-1 gene and G gene in the spleens and muscles of the injection site as well as the titers of the serum antibodies were measured to evaluate the vaccine efficacy by RT-qPCR and ELISA. We found that DNA vaccine immunization could activate Mx1 gene expression and upregulate G gene expression, and the mRNA levels of the Mx1 gene in the muscles were significantly higher than those in the spleens. Notably, DNA vaccine immunization might not promote the serum antibody in fish at the early stage of immunization. Furthermore, the efficacy of the constructed vaccines was tested in intra- and cross-genogroup challenges by a viral challenge in vivo. It seemed that the DNA vaccines were able to provide great immune protection against IHNV infection. In addition, the genogroup J IHNV-G DNA vaccine showed better immune efficacy than the genogroup U IHNV-G or divalent vaccine, which could provide cross-immune protection against the genogroup U IHNV challenge. Therefore, this is the first study to construct an IHNV DNA vaccine using the G gene from an emerging genogroup U IHNV strain in China. The results provide great insight into the advances of new prophylactic strategies to fight both the genogroup J and U IHNV in China.