The most likely cause of Dominic contracting HIV is:
He shared a dirty needle when injecting drugs with a friend.
HIV is primarily transmitted through blood, sexual contact, and from mother to child, and sharing needles is a well-known risk factor for HIV transmission.