> If there is no MX record, A record represents mail host.
> It is not an error to have no MX Records and neither is
> it necessary to recieve mail.
Correct. The code handles that. The only issue was the log level.
> if ( collection.size() == 0 ) {
> try {
> InetAddress.getByName(hostname);
> } catch (UnknownHostException ex) {
> // there is no A record.
> collection.add(hostname);
> }
> }
That is almost what is in the code, except you have the add in the wrong
place. You are adding the host name if there is no A RR. You want to add it
if there IS an A record. :-)
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]