Is it farther or further?
mid-13c., "power of a lord or master, jurisdiction," from Anglo-French daunger, Old French dangier "power, power to harm, mastery, authority, control" (12c., Modern French danger), alteration (due to assoc. with damnum) of dongier, from Vulgar Latin *dominarium "power of a lord," from Latin dominus "lord, master" (see domain).
Modern sense of "risk, peril" (from being in the control of someone or something else) evolved first in French and was in English late 14c. Replaced Old English pleoh; in early Middle English this sense is found in peril.