 After passing through the hands of the Counts of Hohenberg, it was acquired by Württemberg in 1320.A school is first mentioned in the town in 1461.In 1755, Dornstetten was made seat of the "Oberamt" of Dornstetten, an administrative district that was nevertheless dissolved in 1807 and incorporated in the "Oberamt" of Freudenstadt.