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)...
In the situation described by the article, the changes in gene expression are happening in the rat's brains. These changes aren't going to make it into the rat's gametes.