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

x33g5p2x  于2022-01-29 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(128)

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

Record.newRecord介绍

暂无

代码示例

代码示例来源:origin: dnsjava/dnsjava

/**
 * Inserts a prerequisite that the specified name exists; that is, there
 * exist records with the given name in the zone.
 */
public void
present(Name name) {
  newPrereq(Record.newRecord(name, Type.ANY, DClass.ANY, 0));
}

代码示例来源:origin: dnsjava/dnsjava

/**
 * Inserts a prerequisite that the specified rrset exists; that is, there
 * exist records with the given name and type in the zone.
 */
public void
present(Name name, int type) {
  newPrereq(Record.newRecord(name, type, DClass.ANY, 0));
}

代码示例来源:origin: dnsjava/dnsjava

/**
 * Indicates that all records with the given name and type should be deleted
 * from the zone.
 */
public void
delete(Name name, int type) {
  newUpdate(Record.newRecord(name, type, DClass.ANY, 0));
}

代码示例来源:origin: dnsjava/dnsjava

/**
 * Indicates that all records with the given name should be deleted from
 * the zone.
 */
public void
delete(Name name) {
  newUpdate(Record.newRecord(name, Type.ANY, DClass.ANY, 0));
}

代码示例来源:origin: dnsjava/dnsjava

/**
 * Inserts a prerequisite that the specified name does not exist; that is,
 * there are no records with the given name in the zone.
 */
public void
absent(Name name) {
  newPrereq(Record.newRecord(name, Type.ANY, DClass.NONE, 0));
}

代码示例来源:origin: dnsjava/dnsjava

/**
 * Inserts a prerequisite that the specified rrset does not exist; that is,
 * there are no records with the given name and type in the zone.
 */
public void
absent(Name name, int type) {
  newPrereq(Record.newRecord(name, type, DClass.NONE, 0));
}

代码示例来源:origin: org.littleshoot/dnsjava

/**
 * Inserts a prerequisite that the specified rrset does not exist; that is,
 * there are no records with the given name and type in the zone.
 */
public void
absent(Name name, int type) {
  newPrereq(Record.newRecord(name, type, DClass.NONE, 0));
}

代码示例来源:origin: org.littleshoot/dnsjava

/**
 * Indicates that all records with the given name should be deleted from
 * the zone.
 */
public void
delete(Name name) {
  newUpdate(Record.newRecord(name, Type.ANY, DClass.ANY, 0));
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

/**
 * Inserts a prerequisite that the specified rrset exists; that is, there
 * exist records with the given name and type in the zone.
 */
public void
present(Name name, int type) {
  newPrereq(Record.newRecord(name, type, DClass.ANY, 0));
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

/**
 * Inserts a prerequisite that the specified rrset does not exist; that is,
 * there are no records with the given name and type in the zone.
 */
public void
absent(Name name, int type) {
  newPrereq(Record.newRecord(name, type, DClass.NONE, 0));
}

代码示例来源:origin: org.littleshoot/dnsjava

/**
 * Inserts a prerequisite that the specified rrset exists; that is, there
 * exist records with the given name and type in the zone.
 */
public void
present(Name name, int type) {
  newPrereq(Record.newRecord(name, type, DClass.ANY, 0));
}

代码示例来源:origin: tiandawu/IotXmpp

/**
 * Inserts a prerequisite that the specified rrset does not exist; that is,
 * there are no records with the given name and type in the zone.
 */
public void
absent(Name name, int type) {
  newPrereq(Record.newRecord(name, type, DClass.NONE, 0));
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

/**
 * Inserts a prerequisite that the specified name exists; that is, there
 * exist records with the given name in the zone.
 */
public void
present(Name name) {
  newPrereq(Record.newRecord(name, Type.ANY, DClass.ANY, 0));
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

/**
 * Inserts a prerequisite that the specified name does not exist; that is,
 * there are no records with the given name in the zone.
 */
public void
absent(Name name) {
  newPrereq(Record.newRecord(name, Type.ANY, DClass.NONE, 0));
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

/**
 * Indicates that all records with the given name and type should be deleted
 * from the zone.
 */
public void
delete(Name name, int type) {
  newUpdate(Record.newRecord(name, type, DClass.ANY, 0));
}

代码示例来源:origin: net.sf.dnsjava-osgi/dnsjava-osgi

/**
 * Indicates that all records with the given name should be deleted from
 * the zone.
 */
public void
delete(Name name) {
  newUpdate(Record.newRecord(name, Type.ANY, DClass.ANY, 0));
}

代码示例来源:origin: org.littleshoot/dnsjava

/**
 * Inserts a prerequisite that the specified name does not exist; that is,
 * there are no records with the given name in the zone.
 */
public void
absent(Name name) {
  newPrereq(Record.newRecord(name, Type.ANY, DClass.NONE, 0));
}

代码示例来源:origin: org.littleshoot/dnsjava

/**
 * Indicates that all records with the given name and type should be deleted
 * from the zone.
 */
public void
delete(Name name, int type) {
  newUpdate(Record.newRecord(name, type, DClass.ANY, 0));
}

代码示例来源:origin: undera/jmeter-plugins

protected Record getRecord(String recstr) {
  String[] fields = recstr.split(SPACE);
  if (fields.length != 3) {
    throw new IllegalArgumentException("Wrong DNS query string: " + recstr);
  }
  return Record.newRecord(Name.fromConstantString(fields[0]), Type.value(fields[1]), DClass.value(fields[2]));
}

代码示例来源:origin: kg.apc/jmeter-plugins-extras-libs

protected Record getRecord(String recstr) {
  String[] fields = recstr.split(SPACE);
  if (fields.length != 3) {
    throw new IllegalArgumentException("Wrong DNS query string: " + recstr);
  }
  return Record.newRecord(Name.fromConstantString(fields[0]), Type.value(fields[1]), DClass.value(fields[2]));
}

相关文章