From 883942ba55814ba243a2c4a44eca306cd488f5c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Thu, 26 Dec 2019 00:33:23 +0100 Subject: [PATCH] Allow custom massdns path --- .env.default | 1 + resolve_subdomains.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.default b/.env.default index 5412e18..d9e9f13 100644 --- a/.env.default +++ b/.env.default @@ -3,3 +3,4 @@ CACHE_SIZE=536870912 MASSDNS_HASHMAP_SIZE=1000 PROFILE=0 SINGLE_PROCESS=0 +MASSDNS_BINARY=massdns diff --git a/resolve_subdomains.sh b/resolve_subdomains.sh index 82f85c5..0465799 100755 --- a/resolve_subdomains.sh +++ b/resolve_subdomains.sh @@ -17,7 +17,7 @@ pv subdomains/*.list | ./validate_list.py --domain | rev | sort -u | rev > temp/ log "Resolving subdomain…" date +%s > "last_updates/massdns.txt" -massdns --output Snrql --retry REFUSED,SERVFAIL --hashmap-size "$MASSDNS_HASHMAP_SIZE" --resolvers temp/all_nameservers_ip4.list --outfile temp/all_resolved.txt temp/all_subdomains.list +"$MASSDNS_BINARY" --output Snrql --retry REFUSED,SERVFAIL --hashmap-size "$MASSDNS_HASHMAP_SIZE" --resolvers temp/all_nameservers_ip4.list --outfile temp/all_resolved.txt temp/all_subdomains.list log "Importing into database…" [ $SINGLE_PROCESS -eq 1 ] && EXTRA_ARGS="--single-process"