The DNA doesn't sport standard read/write access, what's happening is that the expression or not of some genes can occur on an individual and be inherited by its offspring. The DNA doesn't change (save for the chance of a tiny few random changes, as usual)...