7 'whois.afrinic.net' => {
8 '192.0.2.3' => <<'OUTPUT',
9 % This is the AfriNIC Whois server.
10 % The AFRINIC whois database is subject to the following terms of Use. See https://afrinic.net/whois/terms
12 % Note: this output has been filtered.
13 % To receive output for a database update, use the "-B" flag.
16 % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
18 % Information related to '192.0.2.0 - 192.0.2.255'
20 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
22 inetnum: 192.0.2.0 - 192.0.2.255
28 remarks: Email address for spam or abuse complaints: bad@example.com
40 e-mail: bad@example.com
41 abuse-mailbox: bad@example.com
57 e-mail: bad@example.com
65 % Information related to '192.0.2.0 - 192.0.2.255'
67 inetnum: 192.0.2.0 - 192.0.2.255
70 remarks: Email address for spam or abuse complaints : bad@example.com
74 remarks: This information has been partially mirrored by APNIC from
75 remarks: JPNIC. To obtain more specific information, please use the
76 remarks: JPNIC WHOIS Gateway at
77 remarks: http://www.nic.ad.jp/en/db/whois/en-gateway.html or
78 remarks: whois.nic.ad.jp for WHOIS client. (The WHOIS client
79 remarks: defaults to Japanese output, use the /e switch for English
84 % This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-JP3)
92 'whois.apnic.net' => {
93 '192.0.2.0' => <<'OUTPUT',
95 % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
97 % Information related to '192.0.2.0 - 192.0.2.255'
99 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
101 inetnum: 192.0.2.0 - 192.0.2.255
110 status: ASSIGNED PORTABLE
114 last-modified: 1970-01-01T00:00:00Z
121 e-mail: bad@example.com
122 abuse-mailbox: bad@example.com
128 last-modified: 1970-01-01T00:00:00Z
135 e-mail: bad@example.com
138 last-modified: 1970-01-01T00:00:00Z
147 e-mail: bad@example.com
152 abuse-mailbox: good@example.com
154 last-modified: 1970-01-01T00:00:00Z
164 e-mail: bad@example.com
169 last-modified: 1970-01-01T00:00:00Z
172 % This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-UK4)
176 '192.0.2.3' => <<'OUTPUT',
178 % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
180 % Information related to '192.0.2.0 - 192.0.2.255'
182 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
184 inetnum: 192.0.2.0 - 192.0.2.255
190 remarks: Email address for spam or abuse complaints: bad@example.com
202 e-mail: bad@example.com
203 abuse-mailbox: bad@example.com
219 e-mail: bad@example.com
227 % Information related to '192.0.2.0 - 192.0.2.255'
229 inetnum: 192.0.2.0 - 192.0.2.255
232 remarks: Email address for spam or abuse complaints : bad@example.com
236 remarks: This information has been partially mirrored by APNIC from
237 remarks: JPNIC. To obtain more specific information, please use the
238 remarks: JPNIC WHOIS Gateway at
239 remarks: http://www.nic.ad.jp/en/db/whois/en-gateway.html or
240 remarks: whois.nic.ad.jp for WHOIS client. (The WHOIS client
241 remarks: defaults to Japanese output, use the /e switch for English
246 % This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-JP3)
250 '192.0.2.4' => <<'OUTPUT',
252 % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
254 % Information related to '192.0.2.0 - 192.0.2.255'
256 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
258 inetnum: 192.0.2.0 - 192.0.2.255
271 e-mail: bad@example.com
283 e-mail: good@example.com
293 % Information related to '192.0.2.0/24AS0002'
302 % This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-JP3)
306 '192.0.2.7' => <<'OUTPUT',
308 % Whois data copyright terms http://www.apnic.net/db/dbcopyright.html
310 % Information related to '192.0.2.0 - 192.0.2.255'
312 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
314 inetnum: 192.0.2.0 - 192.0.2.255
324 mnt-irt: IRT-JPNIC-JP
332 e-mail: bad@example.com
333 abuse-mailbox: bad@example.com
349 e-mail: bad@example.com
357 % Information related to '192.0.2.0 - 192.0.2.255'
359 inetnum: 192.0.2.0 - 192.0.2.255
365 remarks: This information has been partially mirrored by APNIC from
366 remarks: JPNIC. To obtain more specific information, please use the
367 remarks: JPNIC WHOIS Gateway at
368 remarks: http://www.nic.ad.jp/en/db/whois/en-gateway.html or
369 remarks: whois.nic.ad.jp for WHOIS client. (The WHOIS client
370 remarks: defaults to Japanese output, use the /e switch for English
375 % This query was served by the APNIC Whois Service version 1.88.15-SNAPSHOT (WHOIS-UK3)
380 'whois.arin.net' => {
382 'whois.iana.org' => {
383 '0.0.0.0' => <<'OUTPUT',
385 % for more information on IANA, visit http://www.iana.org
386 % This query returned 1 object
388 inetnum: 0.0.0.0 - 0.255.255.255
389 organisation: IANA - Local Identification
392 remarks: 0.0.0.0/8 reserved for self-identification [RFC1122],
393 remarks: section 3.2.1.3. Reserved by protocol. For authoritative
394 remarks: registration, seeiana-ipv4-special-registry.
401 'whois.kisa.or.kr' => {
402 '192.0.2.3' => <<'OUTPUT',
408 조회하신 IPv4주소는 한국인터넷진흥원으로부터 아래의 관리대행자에게 할당되었으며, 할당 정보는 다음과 같습니다.
411 IPv4주소 : 192.0.2.0 - 192.0.2.255 (/24)
420 전자우편 : bad@example.com
422 조회하신 IPv4주소는 위의 관리대행자로부터 아래의 사용자에게 할당되었으며, 할당 정보는 다음과 같습니다.
423 --------------------------------------------------------------------------------
427 IPv4주소 : 192.0.2.0 - 192.0.2.127 (/25)
436 전자우편 : good@example.com
441 KRNIC is not an ISP but a National Internet Registry similar to APNIC.
443 [ Network Information ]
444 IPv4 Address : 192.0.2.0 - 192.0.2.255 (/24)
445 Organization Name : X
449 Registration Date : X
453 E-Mail : bad@example.com
455 --------------------------------------------------------------------------------
457 More specific assignment information is as follows.
459 [ Network Information ]
460 IPv4 Address : 192.0.2.0 - 192.0.2.127 (/25)
461 Organization Name : X
465 Registration Date : X
469 E-Mail : good@example.com
472 - KISA/KRNIC WHOIS Service -
476 'whois.lacnic.net' => {
477 '192.0.2.6' => <<'OUTPUT',
479 % Copyright (c) Nic.br
480 % The use of the data below is only permitted as described in
481 % full by the terms of use at https://registro.br/termo/en.html ,
482 % being prohibited its distribution, commercialization or
483 % reproduction, in particular, to use it for advertising or
484 % any similar purpose.
485 % 1970-01-01T00:00:00+00:00 - IP: 2001:db8::
487 inetnum: 192.0.2.0/24
506 nic-hdl-br: CONTACT-1
508 e-mail: good@example.com
513 % Security and mail abuse issues should also be addressed to
514 % cert.br, http://www.cert.br/ , respectivelly to bad@example.com
515 % and bad@example.com
517 % whois.registro.br accepts only direct match queries. Types
518 % of queries are: domain (.br), registrant (tax ID), ticket,
519 % provider, CIDR block, IP and ASN.
522 'whois.nic.ad.jp' => {
523 '192.0.2.3' => <<'OUTPUT',
524 [ JPNIC database provides information regarding IP address and ASN. Its use ]
525 [ is restricted to network administration purposes. For further information, ]
526 [ use 'whois -h whois.nic.ad.jp help'. To only display English output, ]
527 [ add '/e' at the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'. ]
530 a. [Network Number] 192.0.2.0/25
533 m. [Administrative Contact] ROLE-3
534 n. [Technical Contact] ROLE-3
544 [Allocation] 192.0.2.0/24
550 'ROLE-3' => <<'OUTPUT',
551 [ JPNIC database provides information regarding IP address and ASN. Its use ]
552 [ is restricted to network administration purposes. For further information, ]
553 [ use 'whois -h whois.nic.ad.jp help'. To only display English output, ]
554 [ add '/e' at the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'. ]
556 Group Contact Information:
557 [Group Handle] ROLE-3
559 [E-Mail] good@example.com
567 '192.0.2.7' => <<'OUTPUT',
568 [ JPNIC database provides information regarding IP address and ASN. Its use ]
569 [ is restricted to network administration purposes. For further information, ]
570 [ use 'whois -h whois.nic.ad.jp help'. To only display English output, ]
571 [ add '/e' at the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'. ]
574 a. [Network Number] 192.0.2.0/25
577 m. [Administrative Contact] ROLE-6
578 n. [Technical Contact] ROLE-6
587 [Allocation] 192.0.2.0/24
593 'ROLE-6' => <<'OUTPUT'
594 [ JPNIC database provides information regarding IP address and ASN. Its use ]
595 [ is restricted to network administration purposes. For further information, ]
596 [ use 'whois -h whois.nic.ad.jp help'. To only display English output, ]
597 [ add '/e' at the end of command, e.g. 'whois -h whois.nic.ad.jp xxx/e'. ]
600 a. [JPNIC Handle] ROLE-6
602 d. [E-Mail] good@example.com
613 'whois.ripe.net' => {
614 '192.0.2.1' => <<'OUTPUT',
615 % This is the RIPE Database query service.
616 % The objects are in RPSL format.
618 % The RIPE Database is subject to Terms and Conditions.
619 % See http://www.ripe.net/db/support/db-terms-conditions.pdf
621 % Note: this output has been filtered.
622 % To receive output for a database update, use the "-B" flag.
624 % Information related to '192.0.2.0 - 192.0.2.255'
626 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
628 inetnum: 192.0.2.0 - 192.0.2.255
662 source: RIPE # Filtered
672 abuse-mailbox: good@example.com
681 source: RIPE # Filtered
694 source: RIPE # Filtered
696 % Information related to '192.0.2.0/24AS0001'
707 % This query was served by the RIPE Database Query Service version 1.98 (WAGYU)
711 '192.0.2.2' => <<'OUTPUT',
712 % This is the RIPE Database query service.
713 % The objects are in RPSL format.
715 % The RIPE Database is subject to Terms and Conditions.
716 % See http://www.ripe.net/db/support/db-terms-conditions.pdf
718 % Note: this output has been filtered.
719 % To receive output for a database update, use the "-B" flag.
721 % Information related to '192.0.2.0 - 192.0.2.255'
723 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'good@example.com'
725 inetnum: 192.0.2.0 - 192.0.2.255
756 % Information related to '192.0.2.0/24AS00001'
766 % This query was served by the RIPE Database Query Service version 1.98 (ANGUS)
770 '192.0.2.5' => <<'OUTPUT',
771 % This is the RIPE Database query service.
772 % The objects are in RPSL format.
774 % The RIPE Database is subject to Terms and Conditions.
775 % See http://www.ripe.net/db/support/db-terms-conditions.pdf
777 % Note: this output has been filtered.
778 % To receive output for a database update, use the "-B" flag.
780 % Information related to '192.0.2.0 - 192.0.2.255'
782 % Abuse contact for '192.0.2.0 - 192.0.2.255' is 'bad@example.com'
784 inetnum: 192.0.2.0 - 192.0.2.255
805 source: RIPE # Filtered
808 % This query was served by the RIPE Database Query Service version 1.98 (BLAARKOP)
812 'ROLE-4' => <<'OUTPUT',
813 % This is the RIPE Database query service.
814 % The objects are in RPSL format.
816 % The RIPE Database is subject to Terms and Conditions.
817 % See http://www.ripe.net/db/support/db-terms-conditions.pdf
819 % Note: this output has been filtered.
820 % To receive output for a database update, use the "-B" flag.
822 % Information related to 'ROLE-4'
830 abuse-mailbox: good@example.com
835 source: RIPE # Filtered
837 % This query was served by the RIPE Database Query Service version 1.98 (WAGYU)
846 no warnings
qw(once redefine);
848 *App
::Abuser
::address2rir
= sub {
851 die "Missing an argument for App::Abuser::address2rir().\n";
853 if (!defined $server) {
854 die "You forgot to override WHOIS server with setting a \$Stub::server variable.\n";
859 *App
::Abuser
::query
= sub {
860 my ($self, @arguments) = @_;
863 for my $arg (@arguments) {
864 if (ref $key eq '') {
865 die "Too many arguments: App::Abuser::query(" . join(', ', @arguments) . ")\n";
867 if (!exists $key->{$arg}) {
868 die "Unknown argument '$arg' in: App::Abuser::query(" . join(', ', @arguments) . ")\n";
873 if (ref $key ne '') {
874 die "Too few arguments: App::Abuser::query(" . join(', ', @arguments) . ")\n";