Yes when a home is relisted, meaning the previous listing was cancelled or expired then yes the DOM resets to 0.
All of the DOM are averages and they are only for the SOLDs, so yes if a home listed 3 times, expiring 2 times and then finally selling the DOM is definitely not representing the real McCoy.