mdaxfr

- Mass DNS AXFR
git clone git://git.acid.vegas/mdaxfr.git
Log | Files | Refs | Archive | README | LICENSE

commit 31af6d485a39ed48fdfc43cfd4342758f34ee9f5
parent 7f906cb6dc294ae3b50b637d44a470531ab1268e
Author: acidvegas <acid.vegas@acid.vegas>
Date: Fri, 24 Nov 2023 04:11:01 -0500

Added in-addr.arpa zone retrieval to the POSIX version

Diffstat:
Mmdaxfr | 3+++

1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/mdaxfr b/mdaxfr
@@ -38,6 +38,9 @@ attempt_axfr() {
 echo "[\e[31WARNING\e[0m] Most nameservers will block AXFR requests \e[90m(It is normal for most of these to fail)\e[0m"
 sleep 3
 
+# For root IP space zones
+for i in $(seq 0 255); do dig +nocmd +noall +answer +multiline $i.in-addr.arpa NS; done > $OUTPUT_DIR/root/in-addr.arpa.txt
+
 # For root nameservers
 for root in $(dig +short . NS | sed 's/\.$//'); do
 	attempt_axfr "." "$root" "$OUTPUT_DIR/root/$root.txt"