§1. Through both domicile and quasi-domicile, each person acquires his or her pastor and ordinary.
§2. The proper pastor or ordinary of a transient is the pastor or local ordinary where the transient is actually residing.
§3. The proper pastor of one who has only a diocesan domicile or quasi-domicile is the pastor of the place where the person is actually residing.
Source: Code of Canon Law (Vatican.va)