At 12:08 23/8/00 +0100, you wrote:
>I am having problems getting the DNS component of James to resolve and
>retrive the MX records for common domains such as:
>
>btinternet.com
>hotmail.com
>
>
>Does anyone know why?
I am not sure if this is the exact problem but the underlying dns library
is a little fuzzy in some cases. The code in James DNSServer.java block -
namely
else {
Record question = Record.newRecord(name, type, dclass);
org.xbill.DNS.Message query =
org.xbill.DNS.Message.newQuery(question);
org.xbill.DNS.Message response;
try {
response = resolver.send(query);
}
catch (Exception ex) {
return null;
}
short rcode = response.getHeader().getRcode();
if (rcode == Rcode.NOERROR || rcode == Rcode.NXDOMAIN)
cache.addMessage(response);
if (rcode != Rcode.NOERROR)
return null;
return rawDNSLookup(namestr, true, Type.MX);
}
doesn't look up MX domains during a two level dns redirect (which hotmail
could have). To fix it you have to keep resolving hosts after each
redirect. This means check rcode for appropriate values.
I am not familiar enough with how DNS works to safely do it - (and I don't
have time to experiment - sorry). Thou this is where the "error" is - so if
you are familiar enough or know someone who is they should be able to fix it.
Cheers,
Pete
*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power." |
| -Abraham Lincoln |
*------------------------------------------------------*
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]