Allow selecting region for DNS resolvers
This commit is contained in:
parent
3acffde75a
commit
d8a3e2ac9c
|
@ -3,3 +3,4 @@ MASSDNS_HASHMAP_SIZE=1000
|
||||||
PROFILE=0
|
PROFILE=0
|
||||||
SINGLE_PROCESS=0
|
SINGLE_PROCESS=0
|
||||||
MASSDNS_BINARY=massdns
|
MASSDNS_BINARY=massdns
|
||||||
|
RESOLVERS_REGION=us
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
source .env.default
|
||||||
|
source .env
|
||||||
|
|
||||||
function log() {
|
function log() {
|
||||||
echo -e "\033[33m$@\033[0m"
|
echo -e "\033[33m$@\033[0m"
|
||||||
}
|
}
|
||||||
|
@ -28,7 +31,7 @@ dl http://data.iana.org/TLD/tlds-alpha-by-domain.txt temp/all_tld.temp.list
|
||||||
grep -v '^#' temp/all_tld.temp.list | awk '{print tolower($0)}' > temp/all_tld.list
|
grep -v '^#' temp/all_tld.temp.list | awk '{print tolower($0)}' > temp/all_tld.list
|
||||||
|
|
||||||
log "Retrieving nameservers…"
|
log "Retrieving nameservers…"
|
||||||
dl https://public-dns.info/nameservers.txt nameservers/public-dns.cache.list
|
dl https://public-dns.info/nameserver/${RESOLVERS_REGION}.txt nameservers/public-dns.cache.list
|
||||||
|
|
||||||
log "Retrieving top subdomains…"
|
log "Retrieving top subdomains…"
|
||||||
dl http://s3-us-west-1.amazonaws.com/umbrella-static/top-1m.csv.zip top-1m.csv.zip
|
dl http://s3-us-west-1.amazonaws.com/umbrella-static/top-1m.csv.zip top-1m.csv.zip
|
||||||
|
|
Loading…
Reference in a new issue