4 ms·
Any idea on how to find all government IP addresses? specially for other countries
by fotret 9y ago
Any idea on how to find all government IP addresses? specially for other countries
- mindcrime 9y agoYou might start by just googling for it and hope somebody has already compiled a list. Outside of that, for an organization that has IP's allocated specifically to them, you can search the ARIN registry. For the US, you could do something like this if you wanted to find IP's for the Senate: $whois "US Senate"@whois.arin.net which gives back something like: # start CustName: US Senate Address: Telecommunications Department City: Washington StateProv: DC PostalCode: 20510-7202 Country: US RegDate: 1992-12-03 Updated: 2011-03-19 Ref: https://whois.arin.net/rest/customer/C00594783 NetRange: 63.82.112.0 - 63.82.119.255 CIDR: 63.82.112.0/21 NetName: UU-63-82-112 NetHandle: NET-63-82-112-0-1 Parent: UUNET63 (NET-63-64-0-0-1) NetType: Reassigned OriginAS: Customer: US Senate (C00594783) RegDate: 1992-12-03 Updated: 2003-05-30 Ref: https://whois.arin.net/rest/net/NET-63-82-112-0-1 So the Senate has 63.82.112.0 - 63.82.119.255 assigned. A few caveats though: 1. Those IP's might not be the ones assigned to desktop computers in staffer's offices. They may only use these for servers, or they might not even be used at all. For all we know, they have access via some random ISP - Spectrum, AT&T, whoever. Hell, they might have dial-up through AOL! In which case, it would be tough to ever really know. 2. Searching the ARIN registry can be tedious and takes some guesswork. Searching "US Senate"@whois.arin.net will give different results than "U.S. Senate"@whois.arin.net, which gives different results than "United States Senate"@whois.arin.net, etc. There may be a way to use wildcards and other fancy search expressions, but if so, I've never bothered to learn how. Might be worth looking into.
- mkroman 9y agoWhat `whois` tool is that? When I try that exact command I get % whois "US Senate"@whois.arin.net No whois server is known for this kind of object. % whois --version Version 5.2.7. Report bugs to <md+whois@linux.it>.
- mindcrime 9y agoIn my case, the default "whois" on Fedora Linux. F22 on the machine I did that on, I think.
- mindcrime 9y agoMore details. This is from a Fedora 24 machine, where I just tested the whois syntax from above and it worked fine. I guess different versions of the whois command handle this differently. I never knew that until now. Every version I've ever used has supported this kind of query. $ whois --version jwhois version 4.0, Copyright (C) 1999-2007 Free Software Foundation, Inc. This program is free software with ABSOLUTELY NO WARRANTY; you may redistribute it under the terms of the GNU General Public License. Edit: This form might work for you: $whois -h whois.arin.net "US Senate"