Browse Source

move dig-specific filter to digger()

pull/31/head
bolvan 6 years ago
parent
commit
38ab24da68
  1. 2
      ipset/def.sh
  2. 2
      ipset/get_reestr.sh

2
ipset/def.sh

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

2
ipset/get_reestr.sh

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

Loading…
Cancel
Save