move dns code to utils/dnslib