This is an attempt to reproduce the functionality of dnsutils using the ldns library