tidied up DNSfun