From: Brian W. <bwe...@xb...> - 2002-09-05 18:56:55
|
On Thu, 5 Sep 2002, Andrew Houghton wrote: > 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; > } I believe so. > The only difference being that the traversal is depth-first in this > case, so to speak. Right. > In any case, it looks like I'll have to implement the timeout myself. Yes. Brian |