Check if the name1 is a child of name2.
@type t() :: %DNS.Zone.Name{data: bitstring(), value: binary()}
@spec new(binary()) :: t()