From: Andrew H. <aa...@vo...> - 2002-09-05 18:52:12
|
Thanks for the response. Just so I'm sure I understand what you're saying about CNAMEs and getAnyRecord, could the code I showed before be rewritten as: boolean checkDomain(String domain) { if (dns.getAnyRecords(domain, Type.MX) == null) { // no MX records, check for A if (dns.getAnyRecords(domain, Type.A) == null) { return false; } } return true; } The only difference being that the traversal is depth-first in this case, so to speak. In any case, it looks like I'll have to implement the timeout myself. Thanks, Andrew |