Automatically download nameserver list

This commit is contained in:
Geoffrey Frogeye 2019-11-14 10:56:12 +01:00
parent 1bbc17a8ec
commit 7df00fc859
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View file

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

View file

@ -1,5 +1,12 @@
#!/usr/bin/env bash #!/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 # Filter out the subdomains not pointing to a first-party tracker
cat subdomains/*.list | sort -u > temp/all_subdomains.list cat subdomains/*.list | sort -u > temp/all_subdomains.list