Package org.xbill.DNS

Examples of org.xbill.DNS.ZoneTransferIn.run()


    try {
      ZoneTransferIn xfrin = ZoneTransferIn.newAXFR(this.secondaryZone.getZoneName(), this.secondaryZone.getRemoteServerAddress(), null);
      xfrin.setDClass(DClass.value(this.secondaryZone.getDclass()));
      xfrin.setTimeout(axfrTimeout);

      List<?> records = xfrin.run();

      if (!xfrin.isAXFR()) {

        log.warn("Unable to transfer zone " + this.secondaryZone.getZoneName() + " from server " + this.secondaryZone.getRemoteServerAddress() + ", response is not a valid AXFR!");
View Full Code Here


    try {
      ZoneTransferIn xfrin = ZoneTransferIn.newAXFR(this.secondaryZone.getZoneName(), this.secondaryZone.getRemoteServerAddress(), null);
      xfrin.setDClass(DClass.value(this.secondaryZone.getDclass()));
      xfrin.setTimeout(axfrTimeout);

      List<?> records = xfrin.run();

      if (!xfrin.isAXFR()) {

        log.warn("Unable to transfer zone " + this.secondaryZone.getZoneName() + " from server " + this.secondaryZone.getRemoteServerAddress() + ", response is not a valid AXFR!");
View Full Code Here

  protected void setUp() throws Exception {
    super.setUp();

    // purge all SRV records from the test domain
    ZoneTransferIn xfr = ZoneTransferIn.newAXFR(new Name(DnsSdTestHelper.REG_DOMAIN), DnsSdTestHelper.DNS_SERVER, null);
    List records  = xfr.run();
    for (Iterator itr = records.iterator(); itr.hasNext();) {
      Record record = (Record) itr.next();
      String name = record.getName().toString();
      if(name.startsWith("_" + DnsSdTestHelper.REG_SCHEME + "._" + DnsSdTestHelper.PROTO)) {
        Update update = new Update(Name.fromString(DnsSdTestHelper.REG_DOMAIN + "."));
View Full Code Here

    // actually register the service
    discoveryAdvertiser.registerService(serviceInfo);
   
    // check postcondition service is registered
    final ZoneTransferIn xfr = ZoneTransferIn.newAXFR(new Name(DnsSdTestHelper.REG_DOMAIN), DnsSdTestHelper.DNS_SERVER, null);
    assertTrue("Mismatch between DNS response and IServiceInfo", comparator.compare(serviceInfo, xfr.run()) == 0);
  }
 
  /**
   * Tests that a register is handled correctly when no key is present
   * for that domain and the underlying ddns call fails
View Full Code Here

    // unregister via ECF discovery
    discoveryAdvertiser.unregisterService(serviceInfo);
   
    // check SRV record is gone
    final ZoneTransferIn xfr = ZoneTransferIn.newAXFR(new Name(DnsSdTestHelper.REG_DOMAIN), DnsSdTestHelper.DNS_SERVER, null);
    final List records  = xfr.run();
    for (final Iterator itr = records.iterator(); itr.hasNext();) {
      final Record record = (Record) itr.next();
      if(record instanceof SRVRecord) {
        if(comparator.compare(serviceInfo, record) >= 0) {
          fail("Service not removed/unregisterd");
View Full Code Here

    // unregister via ECF discovery
    discoveryAdvertiser.unregisterService(serviceInfo);
   
    // check SRV record is gone
    final ZoneTransferIn xfr = ZoneTransferIn.newAXFR(new Name(DnsSdTestHelper.REG_DOMAIN), DnsSdTestHelper.DNS_SERVER, null);
    final List records  = xfr.run();
    for (final Iterator itr = records.iterator(); itr.hasNext();) {
      final Record record = (Record) itr.next();
      if(record instanceof SRVRecord) {
        if(comparator.compare(serviceInfo, record) >= 0) {
          fail("Service not removed/unregisterd");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.