Note that I'm not claiming here that memories can be encoded in genes; I'm also not making a strong claim here that memories can be encoded epigenetically!
What I am arguing against is the claim that the only possible method of transmission of traits is through DNA, which is what parent comment said, and has been out of date for quite some time.