Answer:
Lactose persistence, and therefore lactose tolerance, is inherited as a dominant trait. Lactose intolerance is the result of having two identical alleles of a particular gene or genes. for the recessive lactase allele that is poorly expressed after early childhood.
You basically can get it from your parents.