calclate statistics for DNS