Browse Source

Allow custom massdns path

master
Geoffrey Frogeye 2 years ago
parent
commit
883942ba55
Signed by: geoffrey GPG Key ID: D8A7ECA00A8CD3DD
  1. 1
      .env.default
  2. 2
      resolve_subdomains.sh

1
.env.default

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

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

Loading…
Cancel
Save