Browse Source

Automatically download nameserver list

newworkflow_parseropti
Geoffrey Frogeye 2 years ago
parent
commit
7df00fc859
  1. 1
      .gitignore
  2. 7
      filter_subdomains.sh

1
.gitignore

@ -1,2 +1,3 @@
*.log
nameservers
nameservers.head

7
filter_subdomains.sh

@ -1,5 +1,12 @@
#!/usr/bin/env bash
# Get a list of nameservers
rm -f nameservers
touch nameservers
[ -f nameservers.head ] && cat nameservers.head >> nameservers
curl https://public-dns.info/nameservers.txt | sort -R >> nameservers
# Filter out the subdomains not pointing to a first-party tracker
cat subdomains/*.list | sort -u > temp/all_subdomains.list

Loading…
Cancel
Save