Package org.xbill.DNS

Examples of org.xbill.DNS.Master


  public static void main(String[] args) throws TextParseException, IOException {

    File zoneFile = new File("zones/unlogic.se");

    Master master = new Master(zoneFile.getPath(),Name.fromString(zoneFile.getName(), Name.root));

    Record record = master._nextRecord();

    while(record != null){

      System.out.println("Class: " + record.getClass());
      System.out.println("Name: " + record.getName());
      System.out.println("toString: " + record.toString());
      System.out.println();

      record = master._nextRecord();
    }
  }
View Full Code Here


  public static void main(String[] args) throws TextParseException, IOException {

    File zoneFile = new File("zones/unlogic.se");

    Master master = new Master(zoneFile.getPath(),Name.fromString(zoneFile.getName(), Name.root));

    Record record = master._nextRecord();

    while(record != null){

      System.out.println("Class: " + record.getClass());
      System.out.println("Name: " + record.getName());
      System.out.println("toString: " + record.toString());
      System.out.println();

      record = master._nextRecord();
    }
  }
View Full Code Here

TOP

Related Classes of org.xbill.DNS.Master

Copyright © 2018 www.massapicom. 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.