Skip to content

Commit

Permalink
Updated the fetching of next gen domains
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorcox75 committed Dec 9, 2020
1 parent 2f6bfb5 commit 758f518
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions PIA
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
#
# World Wide Servers by ip
# wget -q https://www.privateinternetaccess.com/pages/network/ -O - | grep -E -o '>[^.]+\.privateinternetaccess\.com<' | tr -d '[<>]' | while read host ;do host $host ;done | awk '{print $NF}' | sort -u | xargs sudo netselect -v -s 20
#
# Some Speed Test File Locations
# http://support.smartdnsproxy.com/customer/portal/articles/1907772-vpn-server-locations-addresses
Expand All @@ -16,6 +15,7 @@
#http://mirror.sfo12.us.leaseweb.net/speedtest/1000mb.bin
# U.S Servers by ip
# wget -q https://www.privateinternetaccess.com/pages/network/ -O - | grep -E -o '>[^.]+\.privateinternetaccess\.com<' | tr -d '[<>]' | grep us- | while read host ;do host $host ;done | awk '{print $NF}' | sort -u | xargs sudo netselect -v -s 20
# wget -q https://www.privateinternetaccess.com/pages/network/ -O - | grep -E -o '>[^.]+\.privacy\.network<' | tr -d '[<>]' | grep us- | while read host ;do host $host ;done | awk '{print $NF}' | sort -u | xargs sudo netselect -v -s 20
#
# tput is used to move the cursor and change colors
# This script is only verified with Ubuntu and distros based on Ubuntu
Expand Down Expand Up @@ -1008,9 +1008,7 @@ kill -9 $SPIN_PID 2> /dev/null
sed -i 's/255.255.255.255//g' DNS.txt
sort < DNS.txt | uniq > uniDNS.txt && mv uniDNS.txt DNS.txt
printf "%b" "Upstream-DNS-Address Provider" "\n" >> DNS2.txt
printf "%b" "===================== ====================" "\n\n" >> DNS2.txt
while read IP; do
printf "%b" "Upstream-DNS-Address Provider" "\n" >> DNS2.txt printf "%b" "===================== ====================" "\n\n" >> DNS2.txt while read IP; do
printf "${IP} " >> DNS2.txt; printf "%b" $(whois "${IP}" | awk '/NetName/ {print $2;exit}') "\n" >> DNS2.txt
done < DNS.txt
tput cup 16 0
Expand Down

0 comments on commit 758f518

Please sign in to comment.