import java.util.Locale;
import net.sf.javainetlocator.InetAddressLocator;
import net.sf.javainetlocator.InetAddressLocatorException;
public class InetAddressLocatorTest {
public static void main(String[] args){
try {
Locale locale = InetAddressLocator.getLocale("pistos.pe.kr"); // 딸랑 이거 한줄!
System.out.println(locale.getCountry());
} catch (InetAddressLocatorException e) {
e.printStackTrace();
}
}
}