An enzyme that inserts DNA into the host genome. It is encoded by the pol gene of retroviruses and also by temperate bacteriophages, the best known being bacteriophage lambda. EC 2.7.7.-.