DUMPAXFR(1) | General Commands Manual (dns commands manual) | DUMPAXFR(1) |
dumpaxfr
— capture
a DNS zone transfer
dumpaxfr |
[-46dx ] [-p
port] ⟨server⟩
⟨zone⟩
[prefix] |
The dumpaxfr
program sends a DNS AXFR zone
transfer query to server for
zone and saves the response in one or more files. The
files are named like
_
server_
zone_
N.bin
You specify the server,
zone, and prefix on the command
line. The default prefix is
xfer
.
A zone transfer can consist of multiple DNS messages. Each message is written to a different file numbered N starting from 0.
The .bin
suffix indicates that the file is
a binary dump.
The dumpaxfr
program incorrectly uses a
read
() timeout to detect the end of the zone
transfer; it always finishes by reporting an error. The DNS protocol
indicates the end of a zone transfer with a message whose last record is a
second copy of the zone's SOA record. The dumpaxfr
program does not parse responses (except when printing decoded messages) so
it is too stupid to detect the end of the zone transfer correctly.
Tony Finch
⟨dot@dotat.at
⟩
June 12, 2024 | DNS |