Generally speaking , questions affecting the personal status i.e family relationship and family property, should be governed by one and same law irrespective of location and place.
In law, domicile is the status or attribution of being a lawful permanent resident in a particular jurisdiction.
A person can remain domicile in a jurisdiction even after they have left it if they maintain sufficient links with the jurisdiction or have not displayed an intention to leave permanently.
The domicile of origin is communicated by operation of law to each person at birth i.e a domicile of his mother and father which makes the child legitimate or illegitimate.
The domicile of choice is opened to everybody of free age to acquire in substitution for the one he posess.
Residency is the act of establishing or maintaining a residence in a given place. Residency is a concept which heavily affects the legal rights and responsibilities that are available to a person including eligibility to vote, eligibility to stand for political office, eligibility to access government services, responsibility to pay taxes and so on and on.