Phages like the lambda phage use their site specific recombinases to integrate their DNA into the host genome during lysogeny.
The P1 phage DNA when released into the host from the virion is in the form of a linear double stranded DNA molecule.