move dig-specific filter to digger()

This commit is contained in:
bolvan 2019-04-17 16:46:18 +03:00
parent c070cc9528
commit 38ab24da68
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ digger()
if [ -x $MDIG ]; then
$MDIG --family=4 --threads=$MDIG_THREADS <$1
else
dig A +short +time=8 +tries=2 -f $1
dig A +short +time=8 +tries=2 -f $1 | grep -E '^[^;].*[^\.]$'
fi
}

View File

@ -30,7 +30,7 @@ echo preparing dig list ..
cut -f2 -d';' $ZREESTR | grep -avE '^$|\*|:' >$ZDIG
rm -f $ZREESTR
echo digging started ...
digger $ZDIG | grep -E '^[^;].*[^\.]$' | cut_local >$ZIPLISTTMP || {
digger $ZDIG | cut_local >$ZIPLISTTMP || {
rm -f $ZDIG
exit 1
}