Jika Ada Perlu :D

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**

  • @author salman m ibadurrahman

*/
public class DnsSearcher {

ArrayList nameInZone = new ArrayList();

public static void main(String[] args) {
new DnsSearcher().printDnsZone();
}

/**
*
*/
public void printDnsZone() {
File file = new File("C:\\Documents and Settings\\Admin\\Desktop\\zone_itbacid.txt");
BufferedReader reader = null;
try {
reader = new BufferedReader(new FileReader(file));
} catch (FileNotFoundException ex) {
Logger.getLogger(DnsSearcher.class.getName()).log(Level.SEVERE, null, ex);
}
String line = null;
try {
while ((line = reader.readLine()) != null) {
String[] token = line.split(" ");
if((!nameInZone.contains(token[0])) && is4thLevelDomain(token[0])) {
nameInZone.add(token[0].trim());
}
}
int i = 0;
while (i = 0; i++) {
field= domain.substring(begin, end);
begin = end + 1; //mengskip delimiter
}

if(i == 3) return true;
return false;
}

}