本文整理了Java中org.xbill.DNS.Lookup.setDefaultSearchPath()
方法的一些代码示例,展示了Lookup.setDefaultSearchPath()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lookup.setDefaultSearchPath()
方法的具体详情如下:
包路径:org.xbill.DNS.Lookup
类名称:Lookup
方法名:setDefaultSearchPath
暂无
代码示例来源:origin: tiandawu/IotXmpp
Lookup.setDefaultSearchPath(new String[] {domain});
代码示例来源:origin: dnsjava/dnsjava
Lookup.setDefaultSearchPath(new String[] {domain});
代码示例来源:origin: org.littleshoot/dnsjava
Lookup.setDefaultSearchPath(new String[] {domain});
代码示例来源:origin: apache/james-project
Lookup.setDefaultResolver(resolver);
Lookup.setDefaultCache(cache, DClass.IN);
Lookup.setDefaultSearchPath(searchPaths);
LOGGER.info("Registered cache, resolver and search paths as DNSJava defaults");
代码示例来源:origin: org.apache.james/james-server-dnsservice-dnsjava
Lookup.setDefaultResolver(resolver);
Lookup.setDefaultCache(cache, DClass.IN);
Lookup.setDefaultSearchPath(searchPaths);
LOGGER.info("Registered cache, resolver and search paths as DNSJava defaults");
代码示例来源:origin: org.apache.hadoop/hadoop-yarn-registry
Lookup.setDefaultSearchPath(ResolverConfig.getCurrentConfig()
.searchPath());
代码示例来源: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);
}
内容来源于网络,如有侵权,请联系作者删除!