Binds to dsDNA in a sequence-specific manner. Also binds a DNA/RNA duplex when the recognized sequence is in the DNA strand. Each tandem core repeat recognizes a single nucleotide in the target DNA via its base-specifying residue (BSR, residue 13 of each repeat); altering this amino acid changes sequence specificity