🔼The name Adoni-zedek in the Bible
When Adonai-zedek learns about Israel sacking Jericho and Ai, and making peace with Gibeon, he invites his neighbors king Hoham of Hebron, king Piram of Jarmuth, king Japhia of Lachish and king Debir of Eglon to a pentad Amorite alliance. When the men of Gibeon send warning, Joshua marches all night from Gilgal, but it's YHWH who engages the enemy, slaughters them and pursues them, and at the ascent of Beth-horon, starts pelting large stones at them straight from heaven!
At Joshua's request, YHWH even stops the sun from moving out of the valley of Gibeon, so that the massacre of the Amorites can continue (this story is contained in the book of Jashar)
The five kings weasel away and hide in a cave at Makkedah. But they are discovered, retrieved, publicly humiliated and executed. Their bodies hang on five trees until the evening (10:26).
🔼Etymology of the name Adoni-zedek
The name Adoni-zedek obviously consists of two elements. The first part of the name comes from the familiar Hebrew word אדן (adon), roughly meaning lord:
The word adon post-fixed by the letter י creates a possessive form: אדני (adoni), meaning my lord, or lord of, depending on the context.
The second part of the name Adoni-zedek comes from the root צדק (sadek), meaning to be just or righteous:
For a meaning of the name Adonai-zedek, NOBSE Study Bible Name List reads My Lord Is Righteous. Jones' Dictionary of Old Testament Proper Names has Lord Of Justice, and BDB Theological Dictionary in an unequaled display of generosity offers Lord Of Righteousness, My Lord Is Righteous or My Lord Is Sidiq, where Sidiq may be an extra-Biblical (pagan) divine name.