Browse Source

digger : report hostfile and its length

pull/33/head
bolvan 6 years ago
parent
commit
730daf720f
  1. 2
      ipset/def.sh
  2. 1
      ipset/get_reestr.sh

2
ipset/def.sh

@ -33,6 +33,8 @@ zz()
digger() digger()
{ {
>&2 echo digging "$1" : hosts=$(wc -l <"$1")
if [ -x "$MDIG" ]; then if [ -x "$MDIG" ]; then
zzcat "$1" | "$MDIG" --family=4 --threads=$MDIG_THREADS --stats=1000 zzcat "$1" | "$MDIG" --family=4 --threads=$MDIG_THREADS --stats=1000
else else

1
ipset/get_reestr.sh

@ -30,7 +30,6 @@ 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. this can take long ... echo digging started. this can take long ...
echo domains in the list : $(wc -l <"$ZDIG")
digger "$ZDIG" | cut_local >"$ZIPLISTTMP" || { digger "$ZDIG" | cut_local >"$ZIPLISTTMP" || {
rm -f "$ZDIG" rm -f "$ZDIG"
exit 1 exit 1

Loading…
Cancel
Save