To check thousand of addresses
Forums › Service Issues › Networking, Routing, Technology › To check thousand of addresses
-
I have 1000 web address, in a .txt file. I want to know if they’re already blocked by your DNS.
How? How can i check them all?
Thanks.
An easy way would be to run through them using “dig” , “nslookup” or a similar tool. If you get a NXDOMAIN, it shows that we blocked it.
ex:
dig badexample.com @185.228.168.10
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 36598
badexample.com. 3600 IN SOA cleanbrowsing.rpz.noc.org. accesspolicy.rpz.noc.org. 1 7200 900 1209600 86400That tells you that badexample.com is blocked (NXDOMAIN on the query status).
thanks,
In the cmd i write:
dig reddit.com @185.228.168.168
After this cmd shows me this:
“dig is not recognized as an internal or external command”.
Why this?
I use Windows XP SP3.
Another question: I have to check more than 1000 web addresses, do you know how can i check them all in just one step?
If you are on Windows, please try the nslookup command:
ex:
nslookup reddit.com 185.228.168.168
Server: 185.228.168.168
Address: 185.228.168.168#53** server can’t find reddit.com: NXDOMAIN
thanks!
So, don’t exist nothing to check thousands of web address, in one step. Thanks.
Hello cleandns,
I have actually been working on this and have a start to a solution. I don’t have time right now to elaborate on my notes below, but I do plan on releasing a DNS comparison chart on Github and code to run your own comparisons. What I am most looking for at the moment is the best blacklists to test with. I may also consider writing this in JavaScript/node. Will see.
https://www.rootusers.com/12-dig-command-examples-to-query-dns-in-linux/
dig -f test.txt +short | grep -c “185.228” && echo “out of” && wc -l < test.txt
dig -f query.txt @8.8.8.8 +short > results.txt
dig -f test +short > results.txt
dig -f test +noall +question +answer > results.txt———————————————
nslookup -type=txt example.com
dig example.com
nslookup http://www.google.com
dig http://www.google.com |grep SERVERFamily Filter
IPv4 address: 185.228.168.168 and 185.228.169.168—————-
https://en.wikipedia.org/wiki/Comparison_of_DNS_blacklists
http://dsi.ut-capitole.fr/blacklists/index_en.php
http://www.squidblacklist.org/downloads.html (Paid)
http://squidguard.mesd.k12.or.us/blacklists.tgz (mixed of bn-paf, our database and some local additions)
http://www.shallalist.de/ squidguard maintainers,
https://en.wikipedia.org/wiki/SquidGuard#Blacklist_SourcesHello cleandns,
I posted this earlier, but it may have not sent. Re-posting to see if it goes through. Below are some notes that I cannot elaborate on at the moment, but it is a good start. I plan on making this a Github repository and maybe build it in JavaScript/Node eventually:
https://www.rootusers.com/12-dig-command-examples-to-query-dns-in-linux/
dig -f test.txt +short | grep -c “185.228” && echo “out of” && wc -l < test.txt
dig -f query.txt @8.8.8.8 +short > results.txt
dig -f test +short > results.txt
dig -f test +noall +question +answer > results.txt———————————————
nslookup -type=txt example.com
dig example.com
nslookup http://www.google.com
dig http://www.google.com |grep SERVERFamily Filter
IPv4 address: 185.228.168.168 and 185.228.169.168—————-
https://en.wikipedia.org/wiki/Comparison_of_DNS_blacklists
http://dsi.ut-capitole.fr/blacklists/index_en.php
http://www.squidblacklist.org/downloads.html (Paid)
http://squidguard.mesd.k12.or.us/blacklists.tgz (mixed of bn-paf, our database and some local additions)
http://www.shallalist.de/ squidguard maintainers,
https://en.wikipedia.org/wiki/SquidGuard#Blacklist_Sources
You must be logged in to reply to this topic.