Allow custom massdns path

This commit is contained in:
Geoffrey Frogeye 2019-12-26 00:33:23 +01:00
parent d3b244f317
commit 883942ba55
Signed by: geoffrey
GPG key ID: D8A7ECA00A8CD3DD
2 changed files with 2 additions and 1 deletions

View file

@ -3,3 +3,4 @@ CACHE_SIZE=536870912
MASSDNS_HASHMAP_SIZE=1000
PROFILE=0
SINGLE_PROCESS=0
MASSDNS_BINARY=massdns

View file

@ -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"