We have used precise gene editing to assess the role of the cyclophilin domain of RANBP2 in HIV-1 infection and MX2 activity. Here, RANBP2 is linked to HIV-1 infection.