Martin Tomczyk took his first DTM pole position for nearly two years ahead of this weekend's race at the Nurburgring.