In order to help gathering DNS statistics, Ddt includes also several filter scripts. These scripts allow the production of statistics over the zone files, thus it is possible to get the number of hosts per domain, the number of hosts per net, more popular names, etc. To obtain statistics not foreseen with the actual scripts, it's easy to build more scripts, with awk, grep, sort, etc., Unix commands. The following command line returns the most popular names in Portugal:
expand /usr/local/ddt.cache/pt/* | host | names-stat | sort -rn
The ``expand'' command replaces all the relative names by the full qualified ones, the ``host'' command filters the host names and finally the ``names-stat'' command counts the repeated names.
The next command line generates the statistics about the number of hosts per net in Italy:
expand /usr/local/ddt.cache/it/* | hosts-addr | nets | sort -rn
The ``hosts-addr'' command filters host names with the its ip address and the ``nets'' command counts the number of hosts per net.