added afrinic and apnic

This commit is contained in:
jomu
2016-08-29 07:05:11 +00:00
parent faff8cea8d
commit 74d2ea5fe2
2 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,8 @@ public class Whois {
static {
WHOIS_SERVERS = new ArrayList<>();
WHOIS_SERVERS.add("whois.ripe.net");
WHOIS_SERVERS.add("whois.afrinic.net");
WHOIS_SERVERS.add("whois.apnic.net");
}
/**

View File

@ -78,7 +78,7 @@ public class WhoisTest extends BaseTest {
@Test
public void testGeneric() throws WhoisException {
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.getNetwork());
assertFalse (info.getNetwork().isEmpty());