added afrinic and apnic
This commit is contained in:
@ -30,6 +30,8 @@ public class Whois {
|
|||||||
static {
|
static {
|
||||||
WHOIS_SERVERS = new ArrayList<>();
|
WHOIS_SERVERS = new ArrayList<>();
|
||||||
WHOIS_SERVERS.add("whois.ripe.net");
|
WHOIS_SERVERS.add("whois.ripe.net");
|
||||||
|
WHOIS_SERVERS.add("whois.afrinic.net");
|
||||||
|
WHOIS_SERVERS.add("whois.apnic.net");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -78,7 +78,7 @@ public class WhoisTest extends BaseTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testGeneric() throws WhoisException {
|
public void testGeneric() throws WhoisException {
|
||||||
Whois whoIsClient = new Whois();
|
Whois whoIsClient = new Whois();
|
||||||
WhoisInformation info = whoIsClient.execute("whois.ripe.net", "185.125.4.210");
|
WhoisInformation info = whoIsClient.execute( "41.190.8.21");
|
||||||
assertNotNull (info);
|
assertNotNull (info);
|
||||||
assertNotNull (info.getNetwork());
|
assertNotNull (info.getNetwork());
|
||||||
assertFalse (info.getNetwork().isEmpty());
|
assertFalse (info.getNetwork().isEmpty());
|
||||||
|
|||||||
Reference in New Issue
Block a user