axfr version 0.5.2 by gaius
Copyright (C) 1997, 98 Rostra design.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. 
Greetz to kik, plaguez, crazy-b, anti, kewl and everyone else on #hax

axfr will accept a list of domains as arguments, recursively transfer
zone and create directly a database of zone and hosts file for each
domain all output is done using zlib so it saves quite a lot of space,
it uses little ram since it outputs to the file while it transfer.

then u can use axfrcat to cat the hosts files.

you can pass top level domain, use "axfr -d fr fi li co" to get all the zone in france, finland lisenstein, and colombia. 

To compile and install:
./configure
make
make install

This will install axfr, axfrcat and axfrget in /usr/local/bin

please send comment to <frantic@sct.fr>

Usage: axfr [options] domain...
Options:
  -d, --debug                 Print lots of debugging information.
  -h, --help                  Print this message and exit.
  -v, --version               Print the version number of axfr and exit.
  -D, --directory             Set default axfr directory.
  -s, --server                Set default name server.
  -n, --dont-recurse          Disable recursion

put everything in a dir included in your path.

examples: (use --debug or -d for verbose output)

axfrget webbar.fr |admstrobe -p 53
then you can do

axfrcat webbar.fr |admstrobe -p 53 

axfrget best.com | grep ppp | admstrobe -p 53 #hehe

$ axfr haarp.com li
axfr: Using default directory: /home/gaius/axfrdb
Found 2 name servers for domain 'haarp.com.':
207.213.224.16
206.13.28.11
Received 12 answers (12 records).
Found 9 name servers for domain 'li.':
130.59.1.80
130.59.211.10
164.128.36.34
137.39.1.3
128.112.128.1
128.112.129.15
200.16.97.17
202.12.28.131
203.37.255.97
Received 0 answers (0 records).
Received 0 answers (0 records).
Received 0 answers (0 records).
Received 0 answers (0 records).
Received 1762 answers (1762 records).
Found 2 name servers for domain 'schaedler.li.':
193.246.250.3
193.246.248.35
Received 6 answers (6 records).
Found 2 name servers for domain 'nassau.li.':
204.174.223.1
204.174.223.31
Received 11 answers (11 records).
Found 2 name servers for domain 'kmu-markt.li.':
193.246.199.131
157.161.1.2
<truncated>

then you get a nice tree like this:

axfrdb/
|-- com
|   `-- haarp.com
|       |-- hosts_haarp.com.gz
|       `-- zone_haarp.com.gz
|-- hosts
|   |-- haarp.com.gz -> /home/gaius/axfrdb/com/haarp.com/hosts_haarp.com.gz
|   |-- li.gz -> /home/gaius/axfrdb/li/hosts_li.gz
|   |-- nassau.li.gz -> /home/gaius/axfrdb/li/nassau.li/hosts_nassau.li.gz
|   `-- schaedler.li.gz -> /home/gaius/axfrdb/li/schaedler.li/hosts_schaedler.li.gz
|-- li
|   |-- hosts_li.gz
|   |-- nassau.li
|   |   |-- hosts_nassau.li.gz
|   |   `-- zone_nassau.li.gz
|   |-- schaedler.li
|   |   |-- hosts_schaedler.li.gz
|   |   `-- zone_schaedler.li.gz
|   `-- zone_li.gz
`-- zone
    |-- haarp.com.gz -> /home/gaius/axfrdb/com/haarp.com/zone_haarp.com.gz
    |-- li.gz -> /home/gaius/axfrdb/li/zone_li.gz
    |-- nassau.li.gz -> /home/gaius/axfrdb/li/nassau.li/zone_nassau.li.gz
    `-- schaedler.li.gz -> /home/gaius/axfrdb/li/schaedler.li/zone_schaedler.li.gz

