Missing check added
Confusion with parameter order in dns_domain_prepend fixed and a few
helper dns_domain_prepend functions added