man whoiswhois adress_of_net
вывод парсишь и получаешь и имя прова и его сетку и АС
root@fbsd1 /usr/ports/www/opera-devel #whois 193.108.49.0
OrgName: RIPE Network Coordination Centre
OrgID: RIPE
Address: P.O. Box 10096
City: Amsterdam
StateProv:
PostalCode: 1001EB
Country: NL
ReferralServer: whois://whois.ripe.net:43
NetRange: 193.0.0.0 - 193.255.255.255
CIDR: 193.0.0.0/8
NetName: RIPE-CBLK
NetHandle: NET-193-0-0-0-1
Parent:
NetType: Allocated to RIPE NCC
NameServer: NS-PRI.RIPE.NET
NameServer: NS3.NIC.FR
NameServer: SUNIC.SUNET.SE
NameServer: NS-EXT.ISC.ORG
NameServer: SEC1.APNIC.NET
NameServer: SEC3.APNIC.NET
NameServer: TINNIE.ARIN.NET
Comment: These addresses have been further assigned to users in
Comment: the RIPE NCC region. Contact information can be found in
Comment: the RIPE database at http://www.ripe.net/whois
RegDate: 1992-08-12
Updated: 2005-08-03
# ARIN WHOIS database, last updated 2005-12-10 19:10
# Enter ? for additional hints on searching ARIN's WHOIS database.
% This is the RIPE Whois query server #1.
% The objects are in RPSL format.
%
% Note: the default output of the RIPE Whois server
% is changed. Your tools may need to be adjusted. See
% http://www.ripe.net/db/news/abuse-proposal-20050331.html
% for more details.
%
% Rights restricted by copyright.
% See http://www.ripe.net/db/copyright.html
% Note: This output has been filtered.
% To receive output for a database update, use the "-B" flag.
% Information related to '193.108.48.0 - 193.108.51.255'
inetnum: 193.108.48.0 - 193.108.51.255
netname: CITIUSTELECOM-NET
descr: CITIUS
descr: Kiev, Ukraine
country: UA
admin-c: YV14-RIPE
tech-c: AS25961-RIPE
status: ASSIGNED PI
mnt-by: RIPE-NCC-HM-PI-MNT
mnt-lower: RIPE-NCC-HM-PI-MNT
source: RIPE # Filtered
person: Youry Vountesmery
address: Kosiora Str. 30, 88
address: 01135, Kiev, Ukraine
phone: +380 44 2470461
e-mail: youry@vountesmery.org.ua
nic-hdl: YV14-RIPE
source: RIPE # Filtered
person: Alex Shcherbinkin
address: st. Rechnaja 3, 40, 01135, Kiev, Ukraine
phone: +380 44 2163034
e-mail: wantala@wantala.org.ua
nic-hdl: AS25961-RIPE
source: RIPE # Filtered
% Information related to '193.108.49.0/24AS20725'
route: 193.108.49.0/24
descr: CITIUS Block 2
origin: AS20725
mnt-by: CITIUS-MNT
source: RIPE # Filtered
root@fbsd1 /usr/ports/www/opera-devel #