本文整理了Java中org.xbill.DNS.Lookup.setDefaultResolver()
方法的一些代码示例,展示了Lookup.setDefaultResolver()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lookup.setDefaultResolver()
方法的具体详情如下:
包路径:org.xbill.DNS.Lookup
类名称:Lookup
方法名:setDefaultResolver
暂无
代码示例来源:origin: dnsjava/dnsjava
try {
Resolver res = new ExtendedResolver(servers);
Lookup.setDefaultResolver(res);
代码示例来源:origin: tiandawu/IotXmpp
try {
Resolver res = new ExtendedResolver(servers);
Lookup.setDefaultResolver(res);
代码示例来源:origin: org.littleshoot/dnsjava
try {
Resolver res = new ExtendedResolver(servers);
Lookup.setDefaultResolver(res);
代码示例来源:origin: apache/james-project
Lookup.setDefaultResolver(resolver);
Lookup.setDefaultCache(cache, DClass.IN);
Lookup.setDefaultSearchPath(searchPaths);
代码示例来源:origin: org.apache.james/james-server-dnsservice-dnsjava
Lookup.setDefaultResolver(resolver);
Lookup.setDefaultCache(cache, DClass.IN);
Lookup.setDefaultSearchPath(searchPaths);
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-registry
Lookup.setDefaultResolver(resolver);
Lookup.setDefaultSearchPath(ResolverConfig.getCurrentConfig()
.searchPath());
代码示例来源:origin: NationalSecurityAgency/datawave
resolver.setLoadBalance(true);
resolver.setPort(srvDnsPort());
Lookup.setDefaultResolver(resolver);
} catch (UnknownHostException e) {
throw new IllegalArgumentException("Unable to resolve SRV DNS hosts: " + srvDnsServers() + ": " + e.getMessage(), e);
代码示例来源:origin: apache/james-project
@After
public void tearDown() throws Exception {
dnsServer.setCache(null);
dnsServer = null;
Lookup.setDefaultCache(defaultCache, DClass.IN);
Lookup.setDefaultResolver(defaultResolver);
Lookup.setDefaultSearchPath(defaultSearchPaths);
}
代码示例来源:origin: org.apache.james/james-server-dnsservice-dnsjava
@After
public void tearDown() throws Exception {
dnsServer.setCache(null);
dnsServer = null;
Lookup.setDefaultCache(defaultCache, DClass.IN);
Lookup.setDefaultResolver(defaultResolver);
Lookup.setDefaultSearchPath(defaultSearchPaths);
}
代码示例来源:origin: org.apache.james/james-server-dnsservice-dnsjava
@Before
public void setUp() throws Exception {
dnsServer = new TestableDNSServer();
DefaultConfigurationBuilder db = new DefaultConfigurationBuilder();
db.load(new ByteArrayInputStream(DNS_SERVER_CONFIG));
dnsServer.configure(db);
dnsServer.init();
defaultCache = Lookup.getDefaultCache(DClass.IN);
defaultResolver = Lookup.getDefaultResolver();
defaultSearchPaths = Lookup.getDefaultSearchPath();
Lookup.setDefaultCache(null, DClass.IN);
Lookup.setDefaultResolver(null);
Lookup.setDefaultSearchPath(new Name[]{});
dnsServer.setResolver(null);
mockedCache = mock(Cache.class);
}
代码示例来源:origin: apache/james-project
@Before
public void setUp() throws Exception {
dnsServer = new TestableDNSServer();
DefaultConfigurationBuilder db = new DefaultConfigurationBuilder();
db.load(new ByteArrayInputStream(DNS_SERVER_CONFIG));
dnsServer.configure(db);
dnsServer.init();
defaultCache = Lookup.getDefaultCache(DClass.IN);
defaultResolver = Lookup.getDefaultResolver();
defaultSearchPaths = Lookup.getDefaultSearchPath();
Lookup.setDefaultCache(null, DClass.IN);
Lookup.setDefaultResolver(null);
Lookup.setDefaultSearchPath(new Name[]{});
dnsServer.setResolver(null);
mockedCache = mock(Cache.class);
}
内容来源于网络,如有侵权,请联系作者删除!