Catalysis of the endonucleolytic cleavage of DNA to give specific double-stranded fragments with terminal 5'-phosphates and 3' hydroxyls. Cleavage is dependent on the presence in the DNA of a specific recognition site; cleavage occurs at or very near this recognition site.