Browse Source

Allow custom massdns path

tags/v2.2
Geoffrey Frogeye 2 months ago
parent
commit
883942ba55
Signed by: geoffrey <geoffrey@frogeye.fr> GPG Key ID: D8A7ECA00A8CD3DD
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      .env.default
  2. +1
    -1
      resolve_subdomains.sh

+ 1
- 0
.env.default View File

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

+ 1
- 1
resolve_subdomains.sh 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"


Loading…
Cancel
Save