10 '192.0.2.0' => <<'OUTPUT',
12 % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
14 % Information related to '192.0.2.0 - 192.0.2.255'
16 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
18 inetnum: 192.0.2.0 - 192.0.2.255
27 status: ASSIGNED PORTABLE
31 last-modified: 1970-01-01T00:00:00Z
38 e-mail: bad@example.com
39 abuse-mailbox: bad@example.com
45 last-modified: 1970-01-01T00:00:00Z
52 e-mail: bad@example.com
55 last-modified: 1970-01-01T00:00:00Z
64 e-mail: bad@example.com
69 abuse-mailbox: good@example.com
71 last-modified: 1970-01-01T00:00:00Z
81 e-mail: bad@example.com
86 last-modified: 1970-01-01T00:00:00Z
89 % This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-UK4)
93 '192.0.2.1' => <<'OUTPUT',
94 % This is the RIPE Database query service.
95 % The objects are in RPSL format.
97 % The RIPE Database is subject to Terms and Conditions.
98 % See http://www.ripe.net/db/support/db-terms-conditions.pdf
100 % Note: this output has been filtered.
101 % To receive output for a database update, use the "-B" flag.
103 % Information related to '192.0.2.0 - 192.0.2.255'
105 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
107 inetnum: 192.0.2.0 - 192.0.2.255
141 source: RIPE # Filtered
151 abuse-mailbox: good@example.com
160 source: RIPE # Filtered
173 source: RIPE # Filtered
175 % Information related to '192.0.2.0/24AS0001'
186 % This query was served by the RIPE Database Query Service version 1.98 (WAGYU)
190 '192.0.2.2' => <<'OUTPUT',
191 % This is the RIPE Database query service.
192 % The objects are in RPSL format.
194 % The RIPE Database is subject to Terms and Conditions.
195 % See http://www.ripe.net/db/support/db-terms-conditions.pdf
197 % Note: this output has been filtered.
198 % To receive output for a database update, use the "-B" flag.
200 % Information related to '192.0.2.0 - 192.0.2.255'
202 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'good@example.com'
204 inetnum: 192.0.2.0 - 192.0.2.255
235 % Information related to '192.0.2.0/24AS00001'
245 % This query was served by the RIPE Database Query Service version 1.98 (ANGUS)
249 '192.0.2.3' => <<'OUTPUT',
255 조회하신 IPv4주소는 한국인터넷진흥원으로부터 아래의 관리대행자에게 할당되었으며, 할당 정보는 다음과 같습니다.
258 IPv4주소 : 192.0.2.0 - 192.0.2.255 (/24)
267 전자우편 : bad@example.com
269 조회하신 IPv4주소는 위의 관리대행자로부터 아래의 사용자에게 할당되었으며, 할당 정보는 다음과 같습니다.
270 --------------------------------------------------------------------------------
274 IPv4주소 : 192.0.2.0 - 192.0.2.127 (/25)
283 전자우편 : good@example.com
288 KRNIC is not an ISP but a National Internet Registry similar to APNIC.
290 [ Network Information ]
291 IPv4 Address : 192.0.2.0 - 192.0.2.255 (/24)
292 Organization Name : X
296 Registration Date : X
300 E-Mail : bad@example.com
302 --------------------------------------------------------------------------------
304 More specific assignment information is as follows.
306 [ Network Information ]
307 IPv4 Address : 192.0.2.0 - 192.0.2.127 (/25)
308 Organization Name : X
312 Registration Date : X
316 E-Mail : good@example.com
319 - KISA/KRNIC WHOIS Service -
322 '192.0.2.3' => <<'OUTPUT',
323 % This is the AfriNIC Whois server.
324 % The AFRINIC whois database is subject to the following terms of Use. See https://afrinic.net/whois/terms
326 % Note: this output has been filtered.
327 % To receive output for a database update, use the "-B" flag.
330 % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
332 % Information related to '192.0.2.0 - 192.0.2.255'
334 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
336 inetnum: 192.0.2.0 - 192.0.2.255
342 remarks: Email address for spam or abuse complaints: bad@example.com
354 e-mail: bad@example.com
355 abuse-mailbox: bad@example.com
371 e-mail: bad@example.com
379 % Information related to '192.0.2.0 - 192.0.2.255'
381 inetnum: 192.0.2.0 - 192.0.2.255
384 remarks: Email address for spam or abuse complaints : bad@example.com
388 remarks: This information has been partially mirrored by APNIC from
389 remarks: JPNIC. To obtain more specific information, please use the
390 remarks: JPNIC WHOIS Gateway at
391 remarks: http://www.nic.ad.jp/en/db/whois/en-gateway.html or
392 remarks: whois.nic.ad.jp for WHOIS client. (The WHOIS client
393 remarks: defaults to Japanese output, use the /e switch for English
398 % This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-JP3)
405 '192.0.2.4' => <<'OUTPUT',
407 % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
409 % Information related to '192.0.2.0 - 192.0.2.255'
411 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
413 inetnum: 192.0.2.0 - 192.0.2.255
426 e-mail: bad@example.com
438 e-mail: good@example.com
448 % Information related to '192.0.2.0/24AS0002'
457 % This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-JP3)
461 '192.0.2.5' => <<'OUTPUT',
462 % This is the RIPE Database query service.
463 % The objects are in RPSL format.
465 % The RIPE Database is subject to Terms and Conditions.
466 % See http://www.ripe.net/db/support/db-terms-conditions.pdf
468 % Note: this output has been filtered.
469 % To receive output for a database update, use the "-B" flag.
471 % Information related to '192.0.2.0 - 192.0.2.255'
473 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
475 inetnum: 192.0.2.0 - 192.0.2.255
496 source: RIPE # Filtered
499 % This query was served by the RIPE Database Query Service version 1.98 (BLAARKOP)
503 '192.0.2.6' => <<'OUTPUT',
505 % Copyright (c) Nic.br
506 % The use of the data below is only permitted as described in
507 % full by the terms of use at https://registro.br/termo/en.html ,
508 % being prohibited its distribution, commercialization or
509 % reproduction, in particular, to use it for advertising or
510 % any similar purpose.
511 % 1970-01-01T00:00:00+00:00 - IP: 2001:db8::
513 inetnum: 192.0.2.0/24
532 nic-hdl-br: CONTACT-1
534 e-mail: good@example.com
539 % Security and mail abuse issues should also be addressed to
540 % cert.br, http://www.cert.br/ , respectivelly to bad@example.com
541 % and bad@example.com
543 % whois.registro.br accepts only direct match queries. Types
544 % of queries are: domain (.br), registrant (tax ID), ticket,
545 % provider, CIDR block, IP and ASN.
547 '192.0.2.7' => <<'OUTPUT',
549 % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
551 % Information related to '192.0.2.0 - 192.0.2.255'
553 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
555 inetnum: 192.0.2.0 - 192.0.2.255
565 mnt-irt: IRT-JPNIC-JP
573 e-mail: bad@example.com
574 abuse-mailbox: bad@example.com
590 e-mail: bad@example.com
598 % Information related to '192.0.2.0 - 192.0.2.255'
600 inetnum: 192.0.2.0 - 192.0.2.255
606 remarks: This information has been partially mirrored by APNIC from
607 remarks: JPNIC. To obtain more specific information, please use the
608 remarks: JPNIC WHOIS Gateway at
609 remarks: http://www.nic.ad.jp/en/db/whois/en-gateway.html or
610 remarks: whois.nic.ad.jp for WHOIS client. (The WHOIS client
611 remarks: defaults to Japanese output, use the /e switch for English
616 % This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-UK3)
622 'whois.iana.org' => {
624 '0.0.0.0' => <<'OUTPUT',
626 % for more information on IANA, visit http://www.iana.org
627 % This query returned 1 object
629 inetnum: 0.0.0.0 - 0.255.255.255
630 organisation: IANA - Local Identification
633 remarks: 0.0.0.0/8 reserved for self-identification [RFC1122],
634 remarks: section 3.2.1.3. Reserved by protocol. For authoritative
635 remarks: registration, seeiana-ipv4-special-registry.
643 'whois.apnic.net' => {
645 '192.0.2.3' => <<'OUTPUT',
647 % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
649 % Information related to '192.0.2.0 - 192.0.2.255'
651 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
653 inetnum: 192.0.2.0 - 192.0.2.255
659 remarks: Email address for spam or abuse complaints: bad@example.com
671 e-mail: bad@example.com
672 abuse-mailbox: bad@example.com
688 e-mail: bad@example.com
696 % Information related to '192.0.2.0 - 192.0.2.255'
698 inetnum: 192.0.2.0 - 192.0.2.255
701 remarks: Email address for spam or abuse complaints : bad@example.com
705 remarks: This information has been partially mirrored by APNIC from
706 remarks: JPNIC. To obtain more specific information, please use the
707 remarks: JPNIC WHOIS Gateway at
708 remarks: http://www.nic.ad.jp/en/db/whois/en-gateway.html or
709 remarks: whois.nic.ad.jp for WHOIS client. (The WHOIS client
710 remarks: defaults to Japanese output, use the /e switch for English
715 % This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-JP3)
721 'whois.nic.ad.jp' => {
723 '192.0.2.3' => <<'OUTPUT',
724 [ JPNIC database provides information regarding IP address and ASN. Its use ]
725 [ is restricted to network administration purposes. For further information, ]
726 [ use 'whois -h whois.nic.ad.jp help'. To only display English output, ]
727 [ add '/e' at the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'. ]
730 a. [Network Number] 192.0.2.0/25
733 m. [Administrative Contact] ROLE-3
734 n. [Technical Contact] ROLE-3
744 [Allocation] 192.0.2.0/24
750 'ROLE-3' => <<'OUTPUT',
751 [ JPNIC database provides information regarding IP address and ASN. Its use ]
752 [ is restricted to network administration purposes. For further information, ]
753 [ use 'whois -h whois.nic.ad.jp help'. To only display English output, ]
754 [ add '/e' at the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'. ]
756 Group Contact Information:
757 [Group Handle] ROLE-3
759 [E-Mail] good@example.com
767 '192.0.2.7' => <<'OUTPUT',
768 [ JPNIC database provides information regarding IP address and ASN. Its use ]
769 [ is restricted to network administration purposes. For further information, ]
770 [ use 'whois -h whois.nic.ad.jp help'. To only display English output, ]
771 [ add '/e' at the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'. ]
774 a. [Network Number] 192.0.2.0/25
777 m. [Administrative Contact] ROLE-6
778 n. [Technical Contact] ROLE-6
787 [Allocation] 192.0.2.0/24
793 'ROLE-6' => <<'OUTPUT'
794 [ JPNIC database provides information regarding IP address and ASN. Its use ]
795 [ is restricted to network administration purposes. For further information, ]
796 [ use 'whois -h whois.nic.ad.jp help'. To only display English output, ]
797 [ add '/e' at the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'. ]
800 a. [JPNIC Handle] ROLE-6
802 d. [E-Mail] good@example.com
814 'whois.ripe.net' => {
816 'ROLE-4' => <<'OUTPUT',
817 % This is the RIPE Database query service.
818 % The objects are in RPSL format.
820 % The RIPE Database is subject to Terms and Conditions.
821 % See http://www.ripe.net/db/support/db-terms-conditions.pdf
823 % Note: this output has been filtered.
824 % To receive output for a database update, use the "-B" flag.
826 % Information related to 'ROLE-4'
834 abuse-mailbox: good@example.com
839 source: RIPE # Filtered
841 % This query was served by the RIPE Database Query Service version 1.98 (WAGYU)
852 for my $arg (@ARGV) {
853 if (ref $key eq '') {
854 die "Too many arguments: " . join(', ', @ARGV) . "\n";
856 if (!exists $key->{$arg}) {
857 die "Unknown argument '$arg' in: " . join(', ', @ARGV) . "\n";
862 if (ref $key ne '') {
863 die "Too few arguments: " . join(', ', @ARGV) . "\n";