From: Niel de W. <ni...@gm...> - 2011-10-10 13:14:14
|
Hi All, I've got this simple lookup: String domain = "test.surbl.org"; String dnsblDomain = "multi.surbl.org"; Lookup lookup = new Lookup(domain + "." + dnsblDomain, Type.ANY); Resolver resolver = new SimpleResolver(); lookup.setResolver(resolver); Record[] records = lookup.run(); Trying to do a look up of DNS blacklists. However, at the last step an IllegalArgumentException occurs with the message "oneElement(ANY)". I find this very strange, since the documentation of the constructor says "Throws: IllegalArgumentException - The type is a meta type other than ANY." What does this execption tell me? Am I missing something crucial? On the command line I do the following to test: $ host test.surbl.org.multi.surbl.org Kind Regards -- niel de wet I have forfeited my life, I counted the cost, and forsook it for a cross |