connect to dns server and send metrics