Catalysis of the reaction: ATP + a protein = ADP + a phosphoprotein. This reaction requires the presence of DNA.