it is the same word in genitive singular
The stress is different: дОма is gen. s. домА is nom. pl.
The ending "a" in nom. pl. of masc. nouns is always stressed.