Implementation for dns_domain_prepend changed

Now there's no dependency on stralloc_free (which has been removed).
roots2
Redundant code removed