mdaxfr

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

commit 1d1d893c43d872f6b3fd9813d5ba8d7bdbf8bdff
parent a05c4c2eb043833282760c06cabb7c734a4aa496
Author: acidvegas <acid.vegas@acid.vegas>
Date: Thu, 23 Nov 2023 15:46:22 -0500

Improved checking for successful zone axfrs

Diffstat:
Mmdaxfr | 2+-

1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mdaxfr b/mdaxfr
@@ -24,7 +24,7 @@ attempt_axfr() {
 
     for nameserver_ip in $nameserver_ips; do
         dig AXFR "$tld" "@$nameserver_ip" > "$temp_file"
-        if grep -Eq 'Transfer failed|timed out|connection refused' "$temp_file"; then
+        if ! grep -q 'IN.*NS' "$temp_file"; then
 			echo -e "[\e[31mFAIL\e[0m] AXFR for \e[36m$tld\e[0m on \e[33m$nameserver\e[0m \e[90m($nameserver_ip)\e[0m"
             rm -f "$temp_file"
         else