org.xbill.DNS.Lookup.setDefaultSearchPath()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(155)

本文整理了Java中org.xbill.DNS.Lookup.setDefaultSearchPath()方法的一些代码示例,展示了Lookup.setDefaultSearchPath()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Lookup.setDefaultSearchPath()方法的具体详情如下:
包路径:org.xbill.DNS.Lookup
类名称:Lookup
方法名:setDefaultSearchPath

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);
}

相关文章