It's not only about Slavic languages. The root of this word is Proto-Indo-European dṓm and you can find it in other Indo-European languages. For example - δόμος, δομή - building, structure in Greek, domus - house, home in Latin, from Latin it comes to Italian as duomo - cathedral, and dôme in French. Check these articles https://en.wiktionary.org/wiki/Reconstruction:Proto-Indo-European/dṓm https://en.wiktionary.org/wiki/domus
See welf123 in the existing discussion.