use of org.minidns.dnssec.DnssecClient in project minidns by MiniDNS.
the class DNSSECTest method testOarcDaneBadSig.
@Ignore
@IntegrationTest
public static void testOarcDaneBadSig() throws Exception {
DNSSECClient client = new DNSSECClient(new LRUCache(1024));
assertFalse(client.query("_443._tcp.bad-sig.dane.dns-oarc.net", Record.TYPE.TLSA).authenticData);
}
use of org.minidns.dnssec.DnssecClient in project minidns by MiniDNS.
the class DNSSECTest method testCloudFlare.
@IntegrationTest
public static void testCloudFlare() throws IOException {
DNSSECClient client = new DNSSECClient(new LRUCache(1024));
assertAuthentic(client.queryDnssec("www.cloudflare-dnssec-auth.com", Record.TYPE.A));
}
use of org.minidns.dnssec.DnssecClient in project minidns by MiniDNS.
the class IntegrationTestTools method getClient.
public static DNSSECClient getClient(CacheConfig cacheConfig) {
DNSCache cache;
switch(cacheConfig) {
case without:
cache = null;
break;
case normal:
cache = new LRUCache();
break;
case extended:
cache = new ExtendedLRUCache();
break;
case full:
cache = new FullLRUCache();
break;
default:
throw new IllegalStateException();
}
DNSSECClient client = new DNSSECClient(cache);
client.setDataSource(new NetworkDataSourceWithAccounting());
return client;
}
use of org.minidns.dnssec.DnssecClient in project minidns by MiniDNS.
the class DNSSECTest method testUniDueSigOk.
@IntegrationTest
public static void testUniDueSigOk() throws IOException {
DNSSECClient client = new DNSSECClient(new LRUCache(1024));
assertAuthentic(client.queryDnssec("sigok.verteiltesysteme.net", Record.TYPE.A));
}
use of org.minidns.dnssec.DnssecClient in project minidns by MiniDNS.
the class DNSSECTest method testUniDueSigFail.
@IntegrationTest(expected = DNSSECValidationFailedException.class)
public static void testUniDueSigFail() throws IOException {
DNSSECClient client = new DNSSECClient(new LRUCache(1024));
client.query("sigfail.verteiltesysteme.net", Record.TYPE.A);
}
Aggregations