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.
% 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>.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"