Catalysis of the reaction: NAD+ + deoxyribonucleotide(n) + deoxyribonucleotide(m) = AMP + nicotinamide nucleotide + deoxyribonucleotide(n+m).
polynucleotide synthetase (nicotinamide adenine dinucleotide)