 Dornstetten is first documented in the year 767 in the Lorsch Codex, as part of the "Waldgeding" of the Upper Glatt Valley, a loose confederation of settlements roughly corresponding to the modern municipal area.The town received city rights sometime between 1267 and 1276.At that time, Dornstetten belonged to the Counts of Urach-Fürstenberg.