improved whois
This commit is contained in:
@ -51,6 +51,8 @@ public class ArinWhoisParser extends AbstractWhoisParser implements WhoisParser
|
||||
throw new WhoisException("Allocated to LACNIC");
|
||||
} else if (whoisString.contains ("NON-RIPE-NCC-MANAGED-ADDRESS-BLOCK")) {
|
||||
throw new WhoisException("Not managed by RIPE");
|
||||
} else if (whoisString.contains ("Not allocated by APNIC")) {
|
||||
throw new WhoisException("Not allocated by APNIC");
|
||||
} else if (whoisString.contains ("This network range is not allocated to APNIC")) {
|
||||
throw new WhoisException("Not allocated to APNIC");
|
||||
}
|
||||
|
||||
@ -43,6 +43,8 @@ public class DefaultWhoisParser extends AbstractWhoisParser implements WhoisPars
|
||||
throw new WhoisException("Allocated to LACNIC");
|
||||
} else if (whoisString.contains ("NON-RIPE-NCC-MANAGED-ADDRESS-BLOCK")) {
|
||||
throw new WhoisException("Not managed by RIPE");
|
||||
} else if (whoisString.contains ("Not allocated by APNIC")) {
|
||||
throw new WhoisException("Not allocated by APNIC");
|
||||
} else if (whoisString.contains ("This network range is not allocated to APNIC")) {
|
||||
throw new WhoisException("Not allocated to APNIC");
|
||||
}
|
||||
|
||||
@ -15,7 +15,7 @@ class DefaultWhoisParserTest extends BaseTest {
|
||||
|
||||
@Test
|
||||
void parseWhoIsString() throws Exception {
|
||||
String whoisInformation = this.readContentFromFile("90.63.251.1.txt");
|
||||
String whoisInformation = this.readContentFromFile("187.50.136.210.txt");
|
||||
DefaultWhoisParser parser = new DefaultWhoisParser();
|
||||
WhoisInformation information = parser.parseWhoIsString(whoisInformation);
|
||||
assertNotNull (information);
|
||||
|
||||
@ -0,0 +1,48 @@
|
||||
% Copyright (c) Nic.br
|
||||
% The use of the data below is only permitted as described in
|
||||
% full by the terms of use at https://registro.br/termo/en.html ,
|
||||
% being prohibited its distribution, commercialization or
|
||||
% reproduction, in particular, to use it for advertising or
|
||||
% any similar purpose.
|
||||
% 2022-03-01T05:12:42-03:00 - IP: 2a00:e180:cafe:10:9afa:9bff:fe6b:ff2e
|
||||
|
||||
inetnum: 187.92.0.0/15
|
||||
aut-num: AS10429
|
||||
abuse-c: CSTBR
|
||||
owner: TELEF<45>NICA BRASIL S.A
|
||||
ownerid: 02.558.157/0001-62
|
||||
responsible: Diretoria de Planejamento e Tecnologia
|
||||
country: BR
|
||||
owner-c: ARITE
|
||||
tech-c: GRP95
|
||||
created: 20090909
|
||||
changed: 20190410
|
||||
|
||||
nic-hdl-br: ARITE
|
||||
person: Administra<72><61>o Rede IP Telesp
|
||||
e-mail: dominios-vivo.br@telefonica.com
|
||||
country: BR
|
||||
created: 20080407
|
||||
changed: 20220104
|
||||
|
||||
nic-hdl-br: CSTBR
|
||||
person: CSIRT TELEFONICA BR
|
||||
e-mail: abuse.br@telefonica.com
|
||||
country: BR
|
||||
created: 20180713
|
||||
changed: 20180713
|
||||
|
||||
nic-hdl-br: GRP95
|
||||
person: Grupo Provisionamento
|
||||
e-mail: gestaoip@telesp.com.br
|
||||
country: BR
|
||||
created: 20031027
|
||||
changed: 20060809
|
||||
|
||||
% Security and mail abuse issues should also be addressed to
|
||||
% cert.br, http://www.cert.br/ , respectivelly to cert@cert.br
|
||||
% and mail-abuse@cert.br
|
||||
%
|
||||
% whois.registro.br accepts only direct match queries. Types
|
||||
% of queries are: domain (.br), registrant (tax ID), ticket,
|
||||
% provider, CIDR block, IP and ASN.
|
||||
Reference in New Issue
Block a user