How is DNA protected inside a cell?

The DNA in a cell is contained within its own double-membrane layer. It has pores which allow things like RNA through, but for the most part it blocks the cytoplasmic enzymes.