Ó is a simple preposition that means from. It lenites, when followed by a lenitable consonant.
Dúchas is a masculine noun that means native place or country, ancestral home, heritage ⁊rl…
Thus, Ó dhúchas means having the status of being a native of a particular place, country or heritage.