I always thought that 'normal' DR only worked against physical attacks and that energy resistance worked against energy attacks...such that magic would bypass DR/whatever, but would need to contend with 'ER'...a spell such as Ice storm that dealt half physical and half cold would be subject to both up to the half that is such.

Then again...I could be wrong...