A group of enzymes catalyzing the endonucleolytic cleavage of DNA. They include members of EC 3.1.21.-, EC 3.1.22.-, EC 3.1.23.- (dna restriction enzymes), EC 3.1.24.- (dna restriction enzymes), and EC 3.1.25.-.