DNA vaccines work by injecting DNA encoding antigens from pathogens. The host cells use this DNA to produce antigens, which are then displayed on the cell surface and trigger both humoral and cellular immune responses. DNA vaccines offer advantages over traditional vaccines like avoiding infectious organisms, not requiring refrigeration, and stimulating both arms of the immune system. They have shown protection against diseases in animal studies and have potential applications for influenza, hepatitis B, HIV, and malaria vaccines. However, DNA vaccines also have disadvantages like weak immune responses in humans.