test for DNS function