james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel J. Bergman" <n...@devtech.com>
Subject RE: Logging in the new DNSServer service
Date Fri, 06 Jun 2003 16:39:59 GMT
> 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: james-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-dev-help@jakarta.apache.org


Mime
View raw message