DNA zip codes control an ancient mechanism for gene targeting to the nuclear periphery. DNA zip codes control an ancient mechanism for gene targeting to the nuclear periphery.