User Tools

Site Tools


wiki:whois_lookup_list_ips_find_countries

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:whois_lookup_list_ips_find_countries [2022/04/25 11:30] – old revision restored (2022/03/03 11:04) antisawiki:whois_lookup_list_ips_find_countries [2022/04/25 11:41] (current) – add alternative command to parse ips antisa
Line 22: Line 22:
 Then show sorted and aggregated. Then show sorted and aggregated.
   cat sorted1.txt |sort|uniq -c   cat sorted1.txt |sort|uniq -c
 +
 +If you get an error like:
 +  No whois server is known for this kind of object.
 +
 +Could be the input file [[https://stackoverflow.com/questions/71044769/whois-with-a-list-of-domain-names-but-got-error-no-whois-server-is-known-for-th|is messed up]]. Use this command instead:
 +
 +  while IFS=$' \t\r\n' read -r ip; do whois $ip |awk -F: '/country/ {print $2}'| sort; done < list > sorted
  
 ====== Tested on ====== ====== Tested on ======
-  * +  * Ubuntu 20.04
  
 ====== See also ====== ====== See also ======
wiki/whois_lookup_list_ips_find_countries.1650879003.txt.gz · Last modified: 2022/04/25 11:30 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki