# Linux WHOIS3 Get carrier information

Source: Internet
Author: User
Tags dbase

Linux WHOIS3 Get carrier information

Apnic is the organization of IP address allocation in the Asia-Pacific region, it has a rich and accurate IP address allocation database, and this information is also public, and provides a query tool, let us see how to get some of the Chinese basic telecom operators (Netcom, telecommunications, CRC, Education Network) IP address distribution:

(We usually use WHOIS query is to know the domain name or IP check information, which is used to know the geographical area of bulk IP and its information)

Get the installation package

APNIC ripe-dbase-client-v3.tar.gz

Http://ftp.apnic.net/apnic/dbase/tools/ripe-dbase-client-v3.tar.gz

After decompression, you can open the Readme file

  
 
  1. This is whois3, a very simple and generic whois client.
  2. This client, unlike the "classic" whois client,
  3. does not check for supported flags at the client side,
  4. except for -h (whois host) and -p (whois port).
  5. The syntax checks for flags are made at the server side.
  6. The default host and port of whois3 is whois.ripe.net
  7. at port 43 (or to be more exact, the tcp port specified
  8. for whois in /etc/services). You can change the default host
  9. by setting NICHOST in the source.
  10. To compile and install, just type:
  11. % ./configure [--prefix=your_prefix_dir]
  12. % make
  13. % make install
  14. Type "configure --help" for generic help on how to use configure.
  15. This client has been compiled and tested on a variety of systems;
  16. please contact <ripe-[email protected].net> for comments and bug reports.
Execute the Compile and install command (native already Cygwin64 environment)
 
   
  
  1. ./configure
  2. make
  3. make install
Run command
  
 
  1. Whois3-h whois.apnic.Net-L-i mb MAINT-Cncgroup|grep"Descr" |grep"Reverse" |awk-F"for" ' {if ($2!= ") print $ '|Sort-N|awk' begin{print ' ACL \ ' cnc\ '{' "} {print ";"} End{print "'}'; '} ' >Cnc_acl.conf
View Results

The results are as follows

  
 
  1. % Information related to ‘202.111.151.80 - 202.111.151.87‘
  2. inetnum: 202.111.151.80 - 202.111.151.87
  3. netname: SMX-DEMO
  4. descr: San men xia telecom bureau
  5. descr: No.29 branch bureau for multimedia server demo,
  6. descr: San men xia city, Henan Provice
  7. descr: 20020826
  8. country: CN
  9. admin-c: LZ33-AP
  10. tech-c: LZ33-AP
  11. remarks: custmor
  12. mnt-by: MAINT-CNCGROUP
  13. changed: [email protected].online.ha.cn 19990430
  14. status: ASSIGNED NON-PORTABLE
  15. source: APNIC
  16. person: Liping Zhong
  17. address: Henan Multimedia Information Bureau
  18. address: 70, Nong Ye Road
  19. address: ZhengZhou, Henan 450002
  20. address: CN
  21. country: CN
  22. phone: +86-371-3962276
  23. fax-no: +86-371-3962068
  24. e-mail: [email protected].zz.ha.cn
  25. nic-hdl: LZ33-AP
  26. mnt-by: MAINT-NULL
  27. changed: [email protected].online.ha.cn 20001124
  28. source: APNIC


From for notes (Wiz)

# Linux WHOIS3 Get carrier information

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.